简体   繁体   English

代号一parse4cn1构建错误

[英]Codename One parse4cn1 build error

My application build normally, but when I add the libraries parse4cn1 the build fails 我的应用程序正常构建,但是当我添加库parse4cn1构建失败

ios example of failure: 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/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- 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常规armv7 Objective-c com.apple.compilers.llvm.clang.1_0 / 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/ 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-类-Wno-receiver- weak -Wno-arc-repeated-use-of-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-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/build7817864654456 弱-Wno重复使用弱-Wno-missing-braches-括号-Wswitch -Wunused函数-Wno-unused-label -Wno-unused参数-Wno-unused变量-Wunused值- Wno-empty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-四个字符常量-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弃用的实现-DNS_BLOCK_ASSERTIONS = 1-isysroot / Applications / Xcode6。 app / Contents / Developer / Platforms / iPhoneOS.platform / Developer / SDKs / iPhoneOS8.0.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-clarations -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 / build7817864654456 423022xxx/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/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Release-iphoneos/include -I/Applications/Xcode6.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/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 423022xxx / 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 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx / dist / build / Release-iphoneos / include -I / Applications / Xcode6.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr /包括-I / var / folders / p7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build7817864654456423022xxx / dist / build / Main.build / Release-iphoneos / Main.build / DerivedSources / armv7 -I / var / folders / p7 / d3z112yd0156kx7810465 dist / build / Main.build / Release-iphoneos / Main.build / DerivedSources -F / var / folders / p7 / d3z112yd0156kxkm2p21p8ym0000gn / T / build781786465445642303022xxx / 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/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 / Release-iphoneos -include /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/C/com.apple.DeveloperTools/6.0.1-6A317/Xcode/SharedPrecompiledHeaders/Main-Prefix-emlrvbeeugebypcdhsskhvroiczx/Main-Prefix -pch 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-dia /d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Objects-normal/armv7/com_codename1_components_FileEncodedImageAsync_1.dia -c / var / folders / p7 / d3z112y -src / com_codename1_components_FileEncodedImageAsync_1.m -o /var/folders/p7/d3z112yd0156kxkm2p21p8ym0000gn/T/build7817864654456423022xxx/dist/build/Main.build/Release-iphoneos/Main.build/Objects-Normal/Env_A_d_code_file_code_File_code_ImageAsync_1.m -o

** BUILD FAILED ** **建立失败**

The following build commands failed: 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 failure) 以下构建命令失败: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个失败)

I checked and the procedimetos the project wiki, and realized that the exact time that builds fail and the inclusion of lib parse4cn1 . 我检查了项目wiki并procedimetos了处理,并意识到构建的确切时间失败了,并且包含lib parse4cn1

Does anyone have any idea why? 有谁知道为什么吗?

Do you get those errors after including parse4cn1.cn1lib or did you also try to inject native code for push notification support into your build? 包含parse4cn1.cn1lib之后,您是否得到了这些错误?还是尝试将本机代码注入到推送通知支持中? I ask because the log you posted on github suggests that you tried injecting push notification code into your app delegate but you seem to have included the inline comments as well. 我问是因为您在github上发布的日志表明您尝试将推送通知代码注入到您的应用程序委托中,但是您似乎也包括了内联注释。 Comments will cause build errors because the code is stripped of line breaks so the comments will not be parsed correctly. 注释将导致生成错误,因为代码中没有换行符,因此注释将无法正确解析。

To isolate the problem faster, I suggest you try compiling your app with the version of the parse4cn1 lib that doesn't include push notification support available in release 2.0.1 . 为了更快地找出问题,我建议您尝试使用不包含2.0.1版中提供的推送通知支持的parse4cn1 lib版本编译您的应用程序。 Of course, be sure to remove any parse4cn1-related build hints before compiling. 当然,请确保在编译之前删除所有与parse4cn1相关的构建提示。 If that works, you can switch to the version that supports push (if you need it) and carefully add the hints without comments 如果可行,您可以切换到支持push的版本(如果需要),并仔细添加提示而不加注释

因为我没有发现错误,所以我重新进行了整个过程,并且成功了,解决了,谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM