1

我的应用程序构建正常,但是当我添加库parse4cn1时构建失败

ios失败示例:

CompileC build/Main.build/Release-iphoneos/Main.build/Objects-normal/armv7/com_codename1_components_FileEncodedImageAsync_1.o Main-src/com_codename1_components_FileEncodedImageAsync_1.m normal armv7 Objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /var/folders/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:/bin:/usr/sbin:/sbin:/usr/local/bin" /Applications/Xcode6.app/Contents/Developer/Toolchains/ Xcode 默认值。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-字符串 -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-of-weak -Wno-missing-braces -W括号 -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-变量 -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-implementations -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/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Main-own-target-headers.hmap -I /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Main-all-target-headers。hmap -iquote /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Main-project-headers.hmap -I/var/folders/p7/d3z112yd01506kxkm2p21p T/build7817864654456423022xxx/dist/build/Release-iphoneos/include -I/Applications/Xcode6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build782786xxx/6544566 dist/build/Main.build/Release-iphoneos/Main.build/DerivedSources/armv7 -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/ DerivedSources -F/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Release-iphoneos -include /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/C/com.apple。DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/Main-Prefix-emlrvbeeugebypcdhsskhvroiczx/Main-Prefix.pch -MMD -MT dependencies -MF /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/build.d /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 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.构建/对象-正常/armv7/com_codename1_components_FileEncodedImageAsync_1.o

** 构建失败 **

以下构建命令失败:CompileC build/Main.build/Release-iphoneos/Main.build/Objects-normal/armv7/CodenameOne_GLAppDelegate.o Main-src/CodenameOne_GLAppDelegate.m normal armv7 Objective-c com.apple.compilers.llvm。 clang.1_0.compiler (1 失败)

我检查procedimetos了项目 wiki,并意识到构建失败的确切时间和包含 lib parse4cn1

有谁知道为什么?

4

2 回答 2

1

由于我没有发现错误,我重做了整个过程,它有效,解决了,谢谢

于 2015-12-30T03:18:20.953 回答
1

在包含 parse4cn1.cn1lib 之后,您是否收到这些错误,或者您是否还尝试将本机代码注入到您的构建中以支持推送通知?我问是因为您在github上发布的日志表明您尝试将推送通知代码注入您的应用程序委托,但您似乎也包含了内联注释。注释将导致构建错误,因为代码被剥离了换行符,因此无法正确解析注释。

为了更快地隔离问题,我建议您尝试使用 parse4cn1 库版本编译您的应用程序,该版本不包括发布 2.0.1中提供的推送通知支持。当然,请务必在编译之前删除任何与 parse4cn1 相关的构建提示。如果可行,您可以切换到支持推送的版本(如果需要)并仔细添加提示而不添加注释

于 2015-12-24T23:17:19.700 回答