我的应用程序正常构建,但是当我添加库parse4cn1
时,构建失败
失败的例子:
CompileC 建立/ Main.build /释放-的iPhoneOS / Main.build /对象 - 正常/ ARMv7的/ com_codename1_components_FileEncodedImageAsync_1.o Main-src / com_codename1_components_FileEncodedImageAsync_1.m正常 armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd 在/ var /文件夹/ P7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx / DIST export LANG = en_US.US-ASCII export PATH =" /Applications/Xcode6.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode6.app/Contents/Developer/usr/bin:在/ usr / bin中:/仓:/ usr / sbin目录:/ sbin目录:在/ usr / local / bin中" /Applications/Xcode6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length = 0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit = 0 -std = c99 -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-receiver-is-weak -Wno-arc-repeated-use-weak -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno -empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wno-int-conversion -Wbool-conversion -Wno-enum-conversion -Wshorten -64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementation -DNS_BLOCK_ASSERTIONS = 1 -isysroot /Applications/Xcode6.app /Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility = hidden -Wno-sign-conversion -miphoneos-version-min = 5.1.1 -iquote / var / folders / p7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx / dist / build /Main.build/Release-iphoneos/Main.build/Main-generated-files.hmap -I在/ var /文件夹/ P7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx /距离/编译/ Main.build /释放-的iPhoneOS / Main.build /主自己的目标,headers.hmap -I在/ var /文件夹/ P7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx /距离/编译/ Main.build /释放-的iPhoneOS / Main.build /主所有目标headers.hmap -iquote /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Main-project-headers.hmap -I在/ var /文件夹/ P7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx /距离/构建/发布-的iPhoneOS /包括 -I /应用/ Xcode6.app /内容/开发商/工具链/ XcodeDefault.xctoolchain / usr / include目录 -I在/ var /文件夹/ P7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx /距离/编译/ Main.build /释放-的iPhoneOS / Main.build / DerivedSources / ARMv7的 -I在/ var /文件夹/ P7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx /距离/编译/ Main.build /释放-的iPhoneOS / Main.build / DerivedSources -F在/ var /文件夹/ P7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx /距离/构建/发布-的iPhoneOS -include /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/Main-Prefix-emlrvbeeugebypcdhsskhvroiczx/Main-Prefix.pch -MMD -MT依赖关系-MF /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Objects-normal/armv7/com_codename1_components_FileEncodedImageAsync_1.d --serialize-diagnostics /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Objects-normal/armv7/com_codename1_components_FileEncodedImageAsync_1.dia -c /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/Main-src/com_codename1_components_FileEncodedImageAsync_1.m -o /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Objects-normal/armv7/com_codename1_components_FileEncodedImageAsync_1.o
**建筑失败**
以下构建命令失败:CompileC 建立/ Main.build /释放-的iPhoneOS / Main.build /对象 - 正常/ ARMv7的/ CodenameOne_GLAppDelegate.o Main-src / CodenameOne_GLAppDelegate.m正常armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1失败)
我检查了项目维基的procedimetos
,并意识到构建失败的确切时间以及包含lib parse4cn1
。
有谁知道为什么?
答案 0 :(得分:1)
在包含parse4cn1.cn1lib之后,您是否收到了这些错误,或者您是否也尝试将推送通知支持的本机代码注入到您的构建中?我问,因为您在github上发布的日志表明您尝试将推送通知代码注入您的应用代理,但您似乎也包含了内联注释。注释将导致构建错误,因为代码被删除了换行符,因此注释将无法正确解析。
为了更快地隔离问题,我建议您尝试使用不包含release 2.0.1中提供的推送通知支持的parse4cn1库版本来编译您的应用。当然,在编译之前一定要删除任何与parse4cn1相关的构建提示。如果可行,您可以切换到支持推送的版本(如果需要)和小心添加提示无需评论
答案 1 :(得分:1)
因为我没有发现错误,所以我重新整理了整个过程并且工作,解决了,谢谢