Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.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
Xcode 叮当声:错误:链接器命令失败,退出代码为1(swiftyJSON)_Xcode_Swift_Swifty Json - Fatal编程技术网

Xcode 叮当声:错误:链接器命令失败,退出代码为1(swiftyJSON)

Xcode 叮当声:错误:链接器命令失败,退出代码为1(swiftyJSON),xcode,swift,swifty-json,Xcode,Swift,Swifty Json,我正在尝试编译一个从github获得的应用程序,但出现了以下错误 diff: /../Podfile.lock: No such file or directory diff: Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.` 播客文

我正在尝试编译一个从github获得的应用程序,但出现了以下错误

diff: /../Podfile.lock: No such file or directory
diff: Manifest.lock: No such file or directory error: 
The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.`
播客文件

platform :ios, '9.0'
use_frameworks!

target 'SwiftWeather' do
    pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :branch => 'xcode7.1'
end

target 'SwiftWeatherTests' do
    pod 'Quick'
    pod 'Nimble'
end
因此,我所做的是删除工作区文件并按照中的建议再次运行pod安装 但在那之后,我又犯了一个错误。下面


我很困惑。少了什么

您正在使用工作区文件编译项目吗?@skyline75489我正在使用项目文件编译项目。“SwiftWeather.xcodeproj”您应该使用工作区文件。这在使用CocoaPods时是必要的。可能会重复投票结束。检查这个问题。您是否使用工作区文件编译项目?@skyline75489我使用项目文件编译项目。“SwiftWeather.xcodeproj”您应该使用工作区文件。这在使用CocoaPods时是必要的。可能会重复投票结束。看看这个问题。
Ld /Users/alexisalvarez/Library/Developer/Xcode/DerivedData/SwiftWeather-fgqbzqxcsjivdsgoyvlhlttkrwwj/Build/Products/Debug-iphonesimulator/SwiftWeather.app/SwiftWeather normal x86_64
    cd /Users/alexisalvarez/Documents/iOS/finalproject/SwiftWeather-master-1
    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/iPhoneSimulator9.2.sdk -L/Users/alexisalvarez/Library/Developer/Xcode/DerivedData/SwiftWeather-fgqbzqxcsjivdsgoyvlhlttkrwwj/Build/Products/Debug-iphonesimulator -F/Users/alexisalvarez/Library/Developer/Xcode/DerivedData/SwiftWeather-fgqbzqxcsjivdsgoyvlhlttkrwwj/Build/Products/Debug-iphonesimulator -filelist /Users/alexisalvarez/Library/Developer/Xcode/DerivedData/SwiftWeather-fgqbzqxcsjivdsgoyvlhlttkrwwj/Build/Intermediates/SwiftWeather.build/Debug-iphonesimulator/SwiftWeather.build/Objects-normal/x86_64/SwiftWeather.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -Xlinker -objc_abi_version -Xlinker 2 -framework SwiftyJSON -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/alexisalvarez/Library/Developer/Xcode/DerivedData/SwiftWeather-fgqbzqxcsjivdsgoyvlhlttkrwwj/Build/Intermediates/SwiftWeather.build/Debug-iphonesimulator/SwiftWeather.build/Objects-normal/x86_64/SwiftWeather.swiftmodule -framework Pods_SwiftWeather -Xlinker -dependency_info -Xlinker /Users/alexisalvarez/Library/Developer/Xcode/DerivedData/SwiftWeather-fgqbzqxcsjivdsgoyvlhlttkrwwj/Build/Intermediates/SwiftWeather.build/Debug-iphonesimulator/SwiftWeather.build/Objects-normal/x86_64/SwiftWeather_dependency_info.dat -o /Users/alexisalvarez/Library/Developer/Xcode/DerivedData/SwiftWeather-fgqbzqxcsjivdsgoyvlhlttkrwwj/Build/Products/Debug-iphonesimulator/SwiftWeather.app/SwiftWeather
ld: framework not found SwiftyJSON
clang: error: linker command failed with exit code 1 (use -v to see invocation)