【问题标题】:IOS build getting failed with build hint codename1.arg.ios.xcode_version=7.3IOS 构建失败,构建提示 codename1.arg.ios.xcode_version=7.3
【发布时间】:2018-07-02 11:49:56
【问题描述】:

今天 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.

【问题讨论】:

    标签: codenameone


    【解决方案1】:

    如果您明确针对可能导致回归的 xcode 7.3。

    您应该删除 xcode 7.3 目标并保留默认值 (9.2)。我们正在集成对新推送通知功能的支持,并正在采用 xcode 9 的功能。

    【讨论】:

    • 如果我想为旧设备进行调试构建,但没有 xcode 7.3 构建提示应用程序无法运行。我必须添加提示并进行单独的调试构建。请告知是否有任何解决方法?
    • 当您删除该提示时,我假设它因签名而失败,对吗?在这种情况下,您需要重新生成证书。新的证书向导更新生成适用于 xcode 9.x 的证书。
    猜你喜欢
    • 1970-01-01
    • 2019-02-25
    • 2020-12-28
    • 2020-08-18
    • 2021-09-13
    • 2020-09-15
    • 2016-10-03
    • 2013-06-15
    • 1970-01-01
    相关资源
    最近更新 更多