今天,对于较旧的OS iOS设备,IOS调试构建因构建提示codename1.arg.ios.xcode_version = 7.3而失败。有人遇到相同的问题吗?
请查看日志:
CompileC build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Objects-normal/arm64/CodenameOne_GLAppDelegate.o Main-src/CodenameOne_GLAppDelegate.m normal arm64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist
export LANG=en_US.US-ASCII
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch arm64 -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-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 -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=6.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Main-generated-files.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Main-own-target-headers.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Main-all-target-headers.hmap -iquote /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Main-project-headers.hmap -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/BuildProductsPath/Release-iphoneos/include -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/Pods/Headers/Public -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/DerivedSources/arm64 -I/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/DerivedSources -F/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/BuildProductsPath/Release-iphoneos -isystem /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/Pods/Headers/Public -include /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/PrecompiledHeaders/Main-Prefix-gzksruskubtjxyfxgejmlrxqjuuz/Main-Prefix.pch -MMD -MT dependencies -MF /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Objects-normal/arm64/CodenameOne_GLAppDelegate.d --serialize-diagnostics /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Objects-normal/arm64/CodenameOne_GLAppDelegate.dia -c /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/Main-src/CodenameOne_GLAppDelegate.m -o /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/build/Build/Intermediates/ArchiveIntermediates/Main/IntermediateBuildFilesPath/Main.build/Release-iphoneos/Main.build/Objects-normal/arm64/CodenameOne_GLAppDelegate.o
In file included from /var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/Main-src/CodenameOne_GLAppDelegate.m:23:
/var/folders/zh/kb_4hqhn4kg1h0r5dp_6htcm0000gn/T/build7379057061865143274xxx/dist/Main-src/CodenameOne_GLAppDelegate.h:26:9: fatal error: 'UserNotifications/UserNotifications.h' file not found
#import <UserNotifications/UserNotifications.h>
^
1 error generated.
答案 0 :(得分:0)
如果您明确地定位xcode 7.3,这可能会导致回归。
您应该删除xcode 7.3目标并保留默认值(9.2)。我们正在集成对新的推送通知功能的支持,并正在采用xcode 9的功能。