所以在将我的Xcode从8.2.1更新到任何新版本后,我无法构建/运行我的项目。这是我得到的错误..
Ld Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy normal arm64
cd /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch arm64 -isysroot /Users/henrik/Desktop/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.1.sdk -L/Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS -F/Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS -filelist /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy.LinkFileList -miphoneos-version-min=8.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy_lto.o -Xlinker -final_output -Xlinker /Applications/Smash\ Anarchy.app/Smash\ Anarchy -fobjc-link-runtime -ObjC -framework SafariServices -weak_framework GLKit -weak_framework CoreBluetooth -weak_framework JavaScriptCore -weak_framework WebKit -licucore -weak_framework AddressBook -lsqlite3 -lc++ -weak_framework GoogleToolboxForMac -weak_framework FirebaseAnalytics -weak_framework FirebaseAuth -weak_framework FirebaseCore -weak_framework FirebaseCoreDiagnostics -weak_framework FirebaseCrash -weak_framework FirebaseDatabase -weak_framework FirebaseDynamicLinks -weak_framework FirebaseInstanceID -weak_framework FirebaseNanoPB -weak_framework GTMSessionFetcher -weak-lxml2 -weak-lz -weak_framework Accelerate -weak_framework Accounts -weak_framework AddressBookUI -weak_framework AdSupport -weak_framework AssetsLibrary -framework AudioToolbox -weak_framework CoreAudio -lGoogleAnalyticsServices -weak_framework CoreData -weak_framework CoreFoundation -weak_framework CoreImage -weak_framework CoreMIDI -framework Appodeal -weak_framework CoreMotion -weak_framework CoreTelephony -weak_framework CoreText -framework CoreVideo -weak_framework EventKit -weak_framework EventKitUI -weak_framework ExternalAccessory -weak_framework iAd -weak_framework ImageIO -weak_framework MediaToolbox -weak_framework MobileCoreServices -weak_framework NewsstandKit -framework OpenAL -weak_framework QuickLook -weak_framework Security -weak_framework Social -weak_framework StoreKit -weak_framework SystemConfiguration -weak_framework Twitter -weak_framework AVFoundation -framework CFNetwork -framework CoreGraphics -weak_framework CoreLocation -weak_framework CoreMedia -framework Foundation -framework FirebaseRemoteConfig -weak_framework GameKit -framework MediaPlayer -weak_framework MessageUI -weak_framework OpenGLES -framework QuartzCore -framework UIKit /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/S3DClient_iOS.a -framework Protobuf /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Plugins/jpCloudEnvironment_iOS.a /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Plugins/jpEventQueue_iOS.a -Xlinker -dependency_info -Xlinker /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy_dependency_info.dat -o /Users/henrik/Desktop/iOS_Workspace/SmashAnarchy/Smash_Anarchy_iOS/Smash_Anarchy.build/Deployment-iphoneos/Smash\ Anarchy.build/Objects-normal/arm64/Smash\ Anarchy
error: Invalid bitcode signature
clang: error: linker command failed with exit code 1 (use -v to see invocation)
知道如何摆脱这个错误吗?我的bitcode甚至没有。我已经尝试启用,禁用它,清理派生数据,清理项目,重新启动Xcode,将“仅构建活动架构”设置为YES,然后没有...没有任何帮助......我没有使用pod ...任何想法如何找到这个错误的原因?谢谢!
这是我为解决这个问题所做的工作(Xcode 9.0):
当我重新打开Xcode时,它很好。
试试这个
将方案目标更改为通用iOS设备到真实设备(例如您的iPhone)
它适用于我的情况,但我不知道为什么会这样
我在Xcode 9.0和一些框架(包括自定义代码)