没有这样的fie或目录:' JavaScript Core'

时间:2017-02-09 16:31:35

标签: ios iphone xcode

帮助,这让我发疯了。我的启动盘上的空间不足,所以我将大部分文档移到了第二个驱动器上,包括我的所有Xcode项目。现在,我需要修复一个旧的应用程序,并为新的iOS更新它,它不会构建。链接器提供此错误消息:

  

没有这样的文件或目录:' JavaScript Core'

当我点击它时,我会得到以下详细信息。我试过查看项目构建设置链接部分,其他链接器标志。它确实包含JavaScript,但如果应用在浏览器视图中显示HTML页面,则不需要它吗?我不认为我想删除它。我还尝试在Build Phases链接库中手动添加JavaScriptCore库,但没有删除错误。在每次更改之间,我都会执行Clean,然后构建。

仅供参考,我也有一次将我的旧硬盘移动到第二个,并安装了一个新的启动驱动器。旧的称为" Macintosh HD"而新的称为" Macintosh SSD" - 所以某些路径仍然可能指的是旧位置。我注意到路径的前缀为$(PODS_ROOT),其值为/ Volumes / Macintosh HD / Documents / XCodeProjects ....等这是项目当前的旧硬盘。但是,当它们首次创建时,曾经是启动(并且只有)驱动器。

错误详情:

  

Ld的   /Users/jimerman/Library/Developer/Xcode/DerivedData/itsettings-emxzrujgnlqhsodyyuwgfolwckjc/Build/Products/Debug-iphonesimulator/itsettings.app/itsettings   正常的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 /箱:在/ 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 /用户/ jimerman /库/开发商/ Xcode中/ DerivedData / itsettings-emxzrujgnlqhsodyyuwgfolwckjc /编译/产品/调试,iphonesimulator   -L /用户/ jimerman /库/开发商/ Xcode中/ DerivedData / itsettings-emxzrujgnlqhsodyyuwgfolwckjc /编译/产品/调试-iphonesimulator / GoogleToolboxForMac   -L /用户/ jimerman /库/开发商/ Xcode中/ DerivedData / itsettings-emxzrujgnlqhsodyyuwgfolwckjc /编译/产品/调试-iphonesimulator / SBJson5   -L / Volumes / Macintosh \ HD / Documents / XCodeProjects / iPhone / ITSettings / ITSettings   -F /用户/ jimerman /库/开发商/ Xcode中/ DerivedData / itsettings-emxzrujgnlqhsodyyuwgfolwckjc /编译/产品/调试,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:错误:没有这样的文件或目录:' JavaScriptCore'

1 个答案:

答案 0 :(得分:0)

我有相同或至少类似的问题,修复方法是仔细检查构建设置中的链接器标记。我发现在我的一个构建配置中,我有一个不完整的链接器标志值,期望跟随它。事实证明,当它输出命令时,下一个单词是框架,因此它认为它找不到具有该名称的文件夹(不完整的标志后面应该跟着文件夹名称)。简而言之,详细检查所有链接器标志并确保它们完整。