因此,在将我的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,设置"仅构建活动架构"是的,没有..没有任何帮助...我没有使用pod ... 知道怎么找到这个错误的原因吗? 谢谢!
答案 0 :(得分:0)
我认为您必须更改默认的xcode: 只需按照以下步骤操作:
答案 1 :(得分:0)
以下是我为解决此问题所做的工作(Xcode 9.0):
当我重新打开Xcode时,它构建得很好。
答案 2 :(得分:0)
试试这个
将方案目标通用iOS设备更改为真实设备(例如您的iPhone)
它适用于我的情况,但我不知道为什么会这样做
我在Xcode 9.0上和一些框架(包括自定义代码)