包含CODENAME SOCKETS LIBRARY时生成错误

时间:2018-05-04 16:16:55

标签: codenameone

我将CODENAME SOCKETS LIBRARY添加到我的codenameone项目中 - 但是然后CN1 build-Server上的构建失败了。我通过首选项页面添加了lib,然后调用了刷新CN1 Libs。

记录此错误(部分文字):

'ca_weblite_codename1_net_Socket.h' file not found
#import "ca_weblite_codename1_net_Socket.h"
...
The following build commands failed:
CompileC build/Build/Intermediates.noindex/ArchiveIntermediates/AppStart/IntermediateBuildFilesPath/AppStart.build/Release-iphoneos/AppStart.build/Objects-normal/arm64/ca_weblite_codename1_net_impl_NativeSocketImpl.o AppStart-src/ca_weblite_codename1_net_impl_NativeSocketImpl.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler

(1失败) 流程返回代码为65

1 个答案:

答案 0 :(得分:1)

如果您使用本机回调添加cn1lib并且不在可访问代码中使用它,则构建将失败。本机代码调用java代码来触发事件。不幸的是,优化器会删除未使用的代码,因此会出现编译错误。

相关问题