Google在Xcode中播放Cocoapod

Google在Xcode中播放Cocoapod,xcode,cocoapods,google-cast,Xcode,Cocoapods,Google Cast,在我的Xcode Swift项目中尝试使用GoogleCast3.2.0(通过cocoapods),但在模拟器中尝试运行时出错 Ld /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator/Bingo\ Board.app/Bingo\ Board normal x86_64 cd /U

在我的Xcode Swift项目中尝试使用GoogleCast3.2.0(通过cocoapods),但在模拟器中尝试运行时出错

Ld /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator/Bingo\ Board.app/Bingo\ Board normal x86_64 cd /Users/nicholas/OneDrive/Apps/iOS/Bingo2 export IPHONEOS_DEPLOYMENT_TARGET=8.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.1.sdk -L/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator -F/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator -F\ \"/Users/nicholas/OneDrive/Apps/iOS/Bingo2/Pods/google-cast-sdk/GoogleCastSDK-Public-3.2.0-Release\" -filelist /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo\ Board.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=8.0 -Xlinker -object_path_lto -Xlinker /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo\ Board_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo_Board.swiftmodule -ObjC -lc++ -framework AVFoundation -framework Accelerate -framework AudioToolbox -framework CFNetwork -framework CoreBluetooth -framework CoreGraphics -framework CoreMedia -framework CoreText -framework Foundation -framework GoogleCast -framework MediaPlayer -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -ObjC -framework CoreText -framework MediaAccessibility -framework SystemConfiguration -framework GoogleCast -framework StoreKit -lPods-Bingo\ Board -Xlinker -dependency_info -Xlinker /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\ Board.build/Debug-iphonesimulator/Bingo\ Board.build/Objects-normal/x86_64/Bingo\ Board_dependency_info.dat -o /Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug-iphonesimulator/Bingo\ Board.app/Bingo\ Board ld: warning: directory not found for option '-F "/Users/nicholas/OneDrive/Apps/iOS/Bingo2/Pods/google-cast-sdk/GoogleCastSDK-Public-3.2.0-Release"' ld: framework not found GoogleCast clang: error: linker command failed with exit code 1 (use -v to see invocation) Ld/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug iphonesimulator/Bingo\Board.app/Bingo\Board普通x86_64 cd/Users/nicholas/OneDrive/Apps/iOS/Bingo2 导出IPHONEOS_部署_目标=8.0 export PATH=“/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin” /Applications/Xcode.app/Contents/Developer/toolschains/XcodeDefault.xctoolschain/usr/bin/clang-arch x86_64-isysroot/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.1.sdk-L/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug iphonesimulator-F/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug iphonesimulator-F\\“/Users/nicholas/OneDrive/Apps/iOS/Bingo2/Pods/GoogleCastSDK/GoogleCastSDK-Public-3.2.0-Release\"-filelist/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\Board.Build/Debug iphonesimulator/Bingo\Board.Build/Objects normal/x86_64/Bingo\Board.LinkFileList-Xlinker-rpath-Xlinker@executable_path/Frameworks-mios模拟器版本min=8.0-Xlinker-object\u-path\lto-Xlinker/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\Board.Build/Debug iphonesimulator/Bingo\Board.Build/Objects normal/x86_64/Bingo\Board_lto.o-Xlinker-export_dynamic-Xlinker-no_重复数据消除-Xlinker-no_-Xlinker-Xlinker-objc_-abi版本-Xlinker-2-fobjc-link运行时-L/Applications/Xcode.app/Contents/Developer/toolschains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator-Xlinker-add_ast_path-Xlinker/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_-Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\Board.Build/Debug iphonesimulator/o\框架/ObjcC-Obj-Obj-LC++-框架avaFrase-框架加速-框架AudioTooBox -框架CFNET-框架COReBLASH -框架核心图形-框架CeMeEdia-框架CeleTeX-框架基础-框架GooGeLAST-框架MIIAPLPORT -框架石英核心-框架安全性-框架系统配置-框架UIKit-ObjC-框架核心文本-框架媒体可访问性-框架系统配置-框架GoogleCast-框架存储工具包-lPods Bingo\Board-Xlinker-依赖关系信息-Xlinker/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Intermediates/Bingo\Board.Build/Debug iphonesimulator/Bingo\Board.Build/Objects normal/x86_64/Bingo\Board_dependency\u info.dat-o/Users/nicholas/Library/Developer/Xcode/DerivedData/Bingo_Board-fqbocunomtcrqobsvzslsuigorec/Build/Products/Debug iphonesimulator/Bingo\Board.app/Bingo\Board ld:警告:找不到选项'-F'/Users/nicholas/OneDrive/Apps/iOS/Bingo2/Pods/google cast sdk/GoogleCastSDK-Public-3.2.0-Release''的目录 ld:未找到GoogleCast框架 叮当声:错误:链接器命令失败,退出代码为1(使用-v查看调用)
您需要“pod回购更新”然后“pod安装”。如果这不起作用,那么您需要删除pod.lock文件并从“pod init”开始

您需要“pod回购更新”然后“pod安装”。如果这不起作用,那么您需要删除pod.lock文件并从“pod init”开始

你能分享你的podfile吗?@whammypower788你有在iOS中集成GoogleCast的swift教程吗?我正在iOS Swift 3中开发视频应用程序。谢谢你,你能分享你的播客文件吗?@WhammyPower 788你有在iOS中集成GoogleCast的swift教程吗?我正在iOS Swift 3中开发视频应用程序。非常感谢。