2017-02-09 167 views
1

幫助,這讓我瘋狂。我的啓動盤上的空間不足,所以我將大部分文檔移動到了第二個驅動器,包括我的所有Xcode項目。現在,我需要修復一箇舊的應用程序,並將其更新爲新的iOS,並且不會生成。鏈接器給出了這個錯誤信息:No such fie or directory:'JavaScript Core'

No such file or directory: 'JavaScript Core'

當我點擊它,我會得到下面的細節。我曾嘗試在項目構建設置鏈接部分中查找其他鏈接器標誌。它包含JavaScript,但如果應用程序在瀏覽器視圖中顯示HTML頁面,那麼這不是必需的嗎?我不認爲我想刪除它。我還嘗試在構建階段鏈接庫中手動添加JavaScriptCore庫,但未刪除該錯誤。在每一次更改之間,我都會進行一次清潔再建立。

僅供參考,我也曾經一度將我的舊硬盤驅動器變成第二個,並安裝了新的啓動驅動器。舊的稱爲「Macintosh HD」,而新的稱爲「Macintosh SSD」 - 所以有可能某些路徑仍然指舊位置。我注意到這些路徑前綴爲$(PODS_ROOT),其值爲/卷/ Macintosh HD/Documents/XCodeProjects ....等這是項目目前的舊硬盤驅動器。但是,當它們第一次創建時,它曾經是引導(並且唯一)的驅動器。錯誤的

詳情:

Ld /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/itsettings.app/itsettings normal x86_64 cd "/Volumes/Macintosh HD/Documents/XCodeProjects/iPhone/ITSettings" export IPHONEOS_DEPLOYMENT_TARGET=9.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk -L/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator -L/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -L/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/SBJson5 -L/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/ITSettings -F/Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator -F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/FirebaseAnalytics/Frameworks/frameworks -F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/FirebaseCore/Frameworks/frameworks -F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/FirebaseInstanceID/Frameworks/frameworks -F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/Google-Mobile-Ads-SDK/Frameworks/frameworks -F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/GoogleInterchangeUtilities/Frameworks/frameworks -F/Volumes/Macintosh\ HD/Documents/XCodeProjects/iPhone/ITSettings/Pods/GoogleSymbolUtilities/Frameworks/frameworks -filelist /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/Objects-normal/x86_64/itsettings.LinkFileList -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/Objects-normal/x86_64/itsettings_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -lGoogleToolboxForMac -lSBJson5 -lc++ -lsqlite3 -lz -framework AVFoundation -framework AddressBook -framework AudioToolbox -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreVideo -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GLKit -framework GoogleInterchangeUtilities -framework GoogleMobileAds -framework GoogleSymbolUtilities -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework StoreKit -framework SystemConfiguration -weak_framework AdSupport -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -ObjC -lGoogleToolboxForMac -lc++ -lz -framework AVFoundation -framework AddressBook -framework AudioToolbox -framework CoreGraphics -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreVideo -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseInstanceID -framework GLKit -framework GoogleInterchangeUtilities -framework GoogleMobileAds -framework GoogleSymbolUtilities -framework MediaPlayer -framework MessageUI -framework MobileCoreServices -framework OpenGLES -framework StoreKit -framework SystemConfiguration -weak_framework -weak_framework JavaScriptCore -weak_framework SafariServices -weak_framework WebKit -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/itsettings.app.xcent -framework JavaScriptCore -lz.1 -framework SystemConfiguration -framework StoreKit -framework MessageUI -framework EventKitUI -framework EventKit -framework CoreGraphics -framework AVFoundation -framework AudioToolbox -framework AdSupport -framework GoogleMobileAds -framework UIKit -framework Foundation -lPods-ITSettings -Xlinker -dependency_info -Xlinker /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Intermediates/itsettings.build/Debug-iphonesimulator/ITSettings.build/Objects-normal/x86_64/itsettings_dependency_info.dat -o /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/itsettings.app/itsettings

clang: error: no such file or directory: 'JavaScriptCore'

回答

0

我有同樣的或類似的,至少,問題及更正是來投奔我的連接標誌在構建設置非常謹慎。我發現在我的一個構建配置中,我有一個不完整的鏈接器標誌值,預計會跟隨它。事實證明,當它輸出命令時,下一個單詞是框架,因此它認爲它找不到具有該名稱的文件夾(該標誌不完整後應緊跟一個文件夾名稱)。簡而言之,請詳細查看所有鏈接器標誌,並確保它們已完成。

相關問題