Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++-4.2 failed with exit

3C混编问题与解决
本文探讨了在Xcode环境下使用C、C++及Objective-C进行混合编程时遇到的常见问题及其解决方案,并提供了减少静态库函数名冲突的建议。
 

用C,C++,Objective-C三种C语言3C混编的开发程序,在当然方法也和大家说一下吧,就是在Xcode环境中把C语言的.c文件,C++的.cpp文件与Objective-C的.m文件的文件名全部修改成.mm,这样就可以启用Objective-C++的编译环境3C混编了,可是遇到了上述问题,网上的说法不一致,而且我也遇到了多次这个问题,最后解决的方式也不一样,所以最后把所有可能的情况总结了一下:

  1)static方法名重复-因为C语言里没有对象的概念,它的方法只要加入相应的.h文件就可以使用,所以,如果和C++ or Objective-C的静态方法重名了,那么环境无法区分,很明显,这个错误是编译时候的错误,而对于static的变量及方法是在编译的时候便被加入的,所以无法识别.

  2)全局变量名重复,理由和上面是一样的,当然,如果是全局变量,建议在Objective-C的.m文件(当然现在被改成.mm了)中声名,不然,声明在.h中单独使用是没有问题的,如果直接引用了C or C++的.h,那么即使这时候全局变量不重复,也会出现上面的问题.

  3)含有多个main方法,main方法是程序的入口,如果有多个文件含有main方法,那么也会出现上面的问题.

    总的来说,这个问题是因为方法或是全局变量重复所导致的编译环境无法识别并编译 

以上转自一位大牛:http://blog.sina.com.cn/s/blog_67e8ece00100me2u.html

以下是我个人对用于ios下linux c静态库几点建议:

    通常我们都会把函数的声明和全局变量定义在.h文件中,以方便引用,但在ios静态库中,我个人觉得在ios中引用的c静态库头文件中最少量的声明库内部的函数(可将函数写在.c文件中或者单独做一份.h文件,将除了接口以外的函数放在一起),这样就尽可能少的产生函数名冲突,全局变量冲突的问题.

经验之谈,血的教训,以上问题搞了两天没编译过去,悲催!

 

在附加一个 关于"undefine symbols for architecture i386"问题的解决方法

http://blog.youkuaiyun.com/steve1018/article/details/6902973

 

最主要可能的原因是你把库编译的架构整错了,注意armv6,armv7,i368的区别,以及静态库的目的,适用于真机还是用于模拟器,因为他们声称的文件是不一样内容的(分别存放在不同的生成路径,要注意哦!)

Ld /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/ProductName normal (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -Xlinker -reproducible -target arm64-apple-ios14.9 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk -Os -L/Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/EagerLinkingTBDs/Release-iphoneos -L/Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -L/Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Unity-iPhone -F/Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/EagerLinkingTBDs/Release-iphoneos -F/Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos -filelist /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ProductName.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -map -Xlinker /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/ProductName-LinkMap-normal-arm64.txt -dead_strip -Xlinker -object_path_lto -Xlinker /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ProductName_lto.o -Xlinker -final_output -Xlinker /Applications/ProductName.app/ProductName -Xlinker -dependency_info -Xlinker /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/arm64/ProductName_dependency_info.dat -stdlib\=libc++ -fobjc-arc -fobjc-link-runtime -ObjC -framework Pods_Unity_iPhone -framework AdSupport -framework CoreTelephony -framework AppTrackingTransparency -framework AdServices -framework LocalAuthentication -framework WebKit -framework AuthenticationServices -framework JavaScriptCore -weak_framework Network -weak_framework SafariServices -weak_framework MapKit -weak_framework Accounts -weak_framework Accelerate -lsqlite3.0 -lc++ -lz -Xlinker -no_adhoc_codesign -o /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/ProductName ld: warning: ignoring duplicate libraries: '-lc++' LinkAssetCatalog /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Unity-iPhone/Images.xcassets (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild builtin-linkAssetCatalog --thinned /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_output/thinned --thinned-dependencies /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_dependencies_thinned --thinned-info-plist-content /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_generated_info.plist_thinned --unthinned /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_output/unthinned --unthinned-dependencies /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_dependencies_unthinned --unthinned-info-plist-content /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_generated_info.plist_unthinned --output /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app --plist-output /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/assetcatalog_generated_info.plist note: Emplaced /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/AppIcon60x60@2x.png (in target 'Unity-iPhone' from project 'Unity-iPhone') note: Emplaced /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Assets.car (in target 'Unity-iPhone' from project 'Unity-iPhone') note: Emplaced /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/AppIcon76x76@2x~ipad.png (in target 'Unity-iPhone' from project 'Unity-iPhone') Copy /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UnityFramework.framework /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/UnityFramework.framework (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude \*.tbd -strip-unsigned-binaries -strip-deterministic -bitcode-strip all -bitcode-strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks -remove-static-executable /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/UnityFramework.framework /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -D -S -no_atom_info /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/UnityFramework.framework/UnityFramework -o /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UnityFramework.framework/UnityFramework/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UnityFramework.framework/UnityFramework -r -o /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UnityFramework.framework/UnityFramework Copy /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Frameworks/Plugins/iOS/UltraGlobalSDK.framework (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -exclude Headers -exclude PrivateHeaders -exclude Modules -exclude \*.tbd -strip-unsigned-binaries -strip-deterministic -bitcode-strip all -bitcode-strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip -strip-tool /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -resolve-src-symlinks -remove-static-executable /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Frameworks/Plugins/iOS/UltraGlobalSDK.framework /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip -D -S -no_atom_info /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Frameworks/Plugins/iOS/UltraGlobalSDK.framework/UltraGlobalSDK -o /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework/UltraGlobalSDK/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bitcode_strip /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework/UltraGlobalSDK -r -o /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework/UltraGlobalSDK CodeSign /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework (in target 'Unity-iPhone' from project 'Unity-iPhone') cd /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild Signing Identity: "iPhone Distribution: Aniplex Inc. (8ARKQ2E7H5)" Provisioning Profile: "Blue Exorcist Japanese New Distribution" (ac68be12-e3de-4bbd-8f79-5f18bc0d517f) /usr/bin/codesign --force --sign 1120F5C9E9CA86E8B4AF44096D7274F82BB265FA --preserve-metadata\=identifier,entitlements,flags --generate-entitlement-der /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework: errSecInternalComponent Command CodeSign failed with a nonzero exit code /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'Firebase' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Firebase' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'GoogleAppMeasurement' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GoogleAppMeasurement' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseAnalytics' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseAnalytics' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Pods-UnityFramework' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Unity-iPhone.xcodeproj: warning: The Copy Bundle Resources build phase contains this target's entitlements file '/Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Unity-iPhone/Unity-iPhone.entitlements'. (in target 'Unity-iPhone' from project 'Unity-iPhone') warning: Run script build phase 'Crashlytics Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Unity-iPhone' from project 'Unity-iPhone') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'Pods-Unity-iPhone' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'nanopb-nanopb_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'nanopb-nanopb_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'nanopb' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'nanopb' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'PromisesSwift-Promises_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'PromisesSwift-Promises_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'PromisesSwift' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'PromisesSwift' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'PromisesObjC-FBLPromises_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'PromisesObjC' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'PromisesObjC' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'GoogleUtilities-GoogleUtilities_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GoogleUtilities-GoogleUtilities_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'GoogleUtilities' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GoogleUtilities' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'GoogleDataTransport-GoogleDataTransport_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GoogleDataTransport-GoogleDataTransport_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 9.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'GoogleDataTransport' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'GoogleDataTransport' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseSessions' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseSessions' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseRemoteConfigInterop' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseRemoteConfigInterop' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseMessaging-FirebaseMessaging_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseMessaging-FirebaseMessaging_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseMessaging' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseMessaging' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseInstallations-FirebaseInstallations_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseInstallations-FirebaseInstallations_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseInstallations' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseInstallations' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCrashlytics-FirebaseCrashlytics_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCrashlytics-FirebaseCrashlytics_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCrashlytics' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCrashlytics' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCoreInternal-FirebaseCoreInternal_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCoreInternal-FirebaseCoreInternal_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCoreInternal' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCoreInternal' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCoreExtension-FirebaseCoreExtension_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCoreExtension-FirebaseCoreExtension_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCoreExtension' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCoreExtension' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCore-FirebaseCore_Privacy' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCore-FirebaseCore_Privacy' from project 'Pods') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Pods/Pods.xcodeproj: warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 10.0, but the range of supported deployment target versions is 12.0 to 18.4.99. (in target 'FirebaseCore' from project 'Pods') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'FirebaseCore' from project 'Pods') warning: UnityFramework isn't code signed but requires entitlements. It is not possible to add entitlements to a binary without signing it. (in target 'UnityFramework' from project 'Unity-iPhone') note: Disabling previews because SWIFT_VERSION is set and SWIFT_OPTIMIZATION_LEVEL=-O, expected -Onone (in target 'UnityFramework' from project 'Unity-iPhone') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Unity-iPhone.xcodeproj: warning: tasks in 'Copy Headers' are delayed by unsandboxed script phases; set ENABLE_USER_SCRIPT_SANDBOXING=YES to enable sandboxing (in target 'UnityFramework' from project 'Unity-iPhone') /Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Unity-iPhone.xcodeproj: warning: The Copy Bundle Resources build phase contains this target's entitlements file '/Users/jenkinsworkspace/workspace/_trunk_2/BuildOutput/xcodeBuild/Unity-iPhone/Unity-iPhone.entitlements'. (in target 'UnityFramework' from project 'Unity-iPhone') warning: Run script build phase 'Crashlytics Run Script' will be run during every build because it does not specify any outputs. To address this issue, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'UnityFramework' from project 'Unity-iPhone') ** ARCHIVE FAILED ** The following build commands failed: CodeSign /Users/bilibili/Library/Developer/Xcode/DerivedData/Unity-iPhone-gcghvbgmwprbskejwnbonhyizpju/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/ProductName.app/Frameworks/UltraGlobalSDK.framework (in target 'Unity-iPhone' from project 'Unity-iPhone') Archiving workspace Unity-iPhone with scheme Unity-iPhone 什么问题
最新发布
10-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值