Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;链接器命令失败,退出代码为“1”;(Xcode 7,针对iOS 9)_Ios_Linker Errors_Ios9_Xcode7 - Fatal编程技术网

&引用;链接器命令失败,退出代码为“1”;(Xcode 7,针对iOS 9)

&引用;链接器命令失败,退出代码为“1”;(Xcode 7,针对iOS 9),ios,linker-errors,ios9,xcode7,Ios,Linker Errors,Ios9,Xcode7,当我以模拟器为目标构建项目时,它构建得很好。但是,当我以运行iOS 9的设备为目标时,我收到以下错误: Linker command failed with exit code 1 以及选项的目录未找到警告 我怎样才能解决这个问题 编辑:完整错误日志 Ld /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimul

当我以模拟器为目标构建项目时,它构建得很好。但是,当我以运行iOS 9的设备为目标时,我收到以下错误:

Linker command failed with exit code 1
以及选项的
目录未找到
警告

我怎样才能解决这个问题

编辑:完整错误日志

Ld /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/xxxxx\ xxxx.app/xxxxx\ xxxx normal x86_64
cd "/Users/gbs-mac/Desktop/Swapnil/xxxxx xxxxx"
export IPHONEOS_DEPLOYMENT_TARGET=7.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/iPhoneSimulator9.0.sdk -L/Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator -F/Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator -F/Users/sumitghosh/Documents/facebookSDK -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxx/FacebookSDK -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxx/xxxxxx -xxxxx -F/Users/gbs-mac/Desktop/Swapnil/xxxxxx\ xxxxxx -filelist /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Intermediates/Celebrity\ Face.build/Debug-iphonesimulator/xxxxxx\ xxxx.build/Objects-normal/x86_64/xxxxx\ xxxxx.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=7.0 -bundle_loader /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/MyExistingApp.app/MyExistingApp -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -framework StoreKit -framework EventKit -framework EventKitUI -framework CFNetwork -framework CoreTelephony -framework CoreMedia -framework CoreGraphics -framework SystemConfiguration -framework AVFoundation -framework AdSupport -framework AudioToolbox -framework iAd -framework Security -framework AssetsLibrary -framework MobileCoreServices -framework CoreLocation -framework MediaPlayer -framework MessageUI -framework QuartzCore -framework FBSDKShareKit -framework UIKit -framework GoogleMobileAds -framework FBSDKCoreKit -framework FBSDKLoginKit -Xlinker -dependency_info -Xlinker /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Intermediates/xxxxxx\ xxxx.build/Debug-iphonesimulator/xxxxxxx\ xxxx.build/Objects-normal/x86_64/xxxxx\ Face_dependency_info.dat -o /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/Celebrity\ Face.app/xxxxxx\ xxxxxx

ld: warning: directory not found for option '-F/Users/sumitghosh/Documents/facebookSDK'
ld: warning: directory not found for option '-F/Users/gbs-mac/Desktop/Swapnil/xxxxxxx xxxxxx/xxxxxx'
ld: warning: directory not found for option '-FFace'
ld: file not found: /Users/gbs-mac/Library/Developer/Xcode/DerivedData/xxxxxxx-cbqfydingfpnbjblowdpmbcgwnmp/Build/Products/Debug-iphonesimulator/MyExistingApp.app/MyExistingApp
clang: error: linker command failed with exit code 1 (use -v to see invocation)

在菜单栏中,转到产品清洁,然后单击它。然后尝试重建项目。

在项目的生成设置中,删除框架搜索路径和库搜索路径中的所有内容。清理并生成。

请将您的完整错误上传到并链接到问题中。您在项目中使用web服务吗?@uma-是的,还有FBSDKHave您是否修改了info.plist,如此NSAppTransportSecurity NSAllowsArbilarLoads是的,但仍然面临相同的问题problem@Shameerjan完全错误意味着什么?