应用使用的是Camera Capture类而不是CameraKit库 Android可以毫无问题地进行编译和构建。
Codenameone应用正在编译为ios(调试),现在没有任何问题:
CompileC build / build / intermediates.noindex / ArchiveIntermediates / MyApplication / IntermediateBuildFilesPath / MyApplication.build / Release-iphoneos / MyApplication.build / Objects-normal / arm64 / com_codename1_camerakit_impl_CameraNativeAccessImpl.o MyApplication-src / com_codename1_camerakit_impl_CameraNativeAccessImpl.m 普通arm64 Objective-c com.apple.compilers.llvm.clang.1_0.compiler cd / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist export LANG = zh_CN.US-ASCII 导出PATH =“ / Applications / Xcode9.2.app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / usr / bin:/Applications/Xcode9.2.app/Contents/Developer/usr/bin:/ usr / local / bin:/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin“ /Applications/Xcode9.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x客观c -arch arm64 -fmessage-length = 0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit = 0 -std = c99 -gmodules -Wno-trigraphs -fpascal-strings -O3 -Wno -missing-field-initializers -Wno-missing-prototypes -Werror = return-type -Wno-implicit-atomic-properties -Werror = deprecated-objc-isa-usage -Werror = objc-root-class -Wno-arc-repeated -弱使用-无括号-Whesheses -Wswitch -Wunused函数-Wno-unused标签-Wno-unused参数-Wno-unused变量-Wunused值-Wno-空体-Wuninitialized -Wno未知的编译指示-Wno阴影-Wno-四个字符常量-Wno转换-Wconstant转换-Wno-int转换-Wbool转换-Wno-枚举转换-Wno-float转换-Wno -非文字空转换-Wno-objc-文字转换-Wshorten-64-to-32 -Wpointer-Sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno弃用的实现-DCOCOAPODS = 1 -DNS_BLOCK_ASSERTIONS = 1 -isysroot /Applications/Xcode9.2.app/Contents/D eveloper /平台/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -fstrict-aliasing -Wprotocol -W弃用的声明-miphoneos-version-min = 8.0 -g -fvisibility =隐藏-Wno符号转换-Wno无限递归-Wno逗号-Wno块捕获自动释放-Wno -strict-prototypes -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.Build/Release-iphoneos -files.hmap -I / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / build / Build / Intermediates.noindex / ArchiveIntermediates / MyApplication / IntermediateBuildFilesPath / MyApplication.build / Release-iphoneos / MyApplication.build / Myers-target .hmap -I / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / build / Build / Intermediates.noindex / ArchiveIntermediates / MyApplication / IntermediateBuildFilesPath / MyApplication.build / Release-iphoneos / MyApplication.build / MyApplication-all .hmap -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/Mymap.headers/Application。 -I / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / build / Build / Intermediates.noindex / ArchiveIntermediates / MyApplication / BuildProductsPath / Release-iphoneos / include -I / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / Pods / Headers / Public -I / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / Pods / Headers / Public / GoogleMaps -I / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / build / Build / Intermediates.noindex / ArchiveIntermediates / MyApplication / IntermediateBuildFilesPath / MyApplication.build / Release-iphoneos / MyApplication.build / DerivedSource -I / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / build / Build / Intermediates.noindex / ArchiveIntermediates / MyApplication / IntermediateBuildFilesPath / MyApplication.build / Release-iphoneos / MyApplication.build / DerivedSource -F / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / build / Build / Intermediates.noindex / ArchiveIntermediates / MyApplication / BuildProductsPath / Release-iphoneos -F / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / Pods / GoogleMaps / Base / Frameworks -F / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / Pods / GoogleMaps / Maps / Frameworks -isystem / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / Pods / Headers / Public -isystem / var / folders / zh / kb_4hqhn4kg1h0r5dp_6htcm0000gn / T / build7095351684558952468xxx / dist / Pods / Headers / Public / GoogleMaps -include /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/MyApplication/PrecompiledHeaders/MyApplication-Prefix-hbgltpkgcmoawieqkPremier-chs/n。 -MMD -MT依赖项-MF /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication。普通/arm64/com_codename1_camerakit_impl_CameraNativeAccessImpl.d --serialize-diagnostics /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication。 arm64 / com_codename1_camerakit_impl_CameraNativeAccessImpl.dia -c /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/MyApplication-src/com_codename1_camerakit_impl_CameraNativeAccessImpl.m -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/build/Build/Intermediates.noindex/ArchiveIntermediates/MyApplication/IntermediateBuildFilesPath/MyApplication.build/Release-iphoneos/MyApplication_build/Cam_Name/Cam_Name/Cam_Access_Cam_Name .o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7095351684558952468xxx/dist/MyApplication-src/com_codename1_camerakit_impl_CameraNativeAccessImpl.m:2:10: 致命错误:“ com_codename1_camerakit_impl_CameraCallbacks.h”文件不存在 找到
包括“ com_codename1_camerakit_impl_CameraCallbacks.h”
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
产生了1个错误。
答案 0 :(得分:1)
发生这种情况是因为您过去安装了cn1lib却没有将其删除。在Android上,无论如何它都将包含cn1lib,并且您只会有一些开销,但是在iOS上,我们会删除未使用的代码。 (请注意,在Android上的混淆阶段可能会删除库代码。)
不幸的是,库中的本机代码无法检测到发生这种未使用代码的剥离,并会导致此编译错误。
查看此内容:https://www.codenameone.com/blog/tip-uninstall-cn1lib.html