从命令行运行xcodebuild命令时,我找不到-lGoogleToolboxForMac的库。
此问题的大多数建议是使用xcode项目解决。管道调用基于云的MacOS代理,并且没有对Mac系统的任何物理访问。
我尝试了这个建议command line option,但是没有运气。如何在构建命令中包含lGoogleToolboxForMac部分?
2018-12-10T01:51:35.9852980Z
2018-12-10T01:51:35.9853530Z ▸ Compiling main.m
2018-12-10T01:51:35.9854040Z ▸ Compiling UniversalAnalyticsPlugin.m
2018-12-10T01:51:35.9854790Z ▸ Compiling TouchID.m
2018-12-10T01:51:35.9855390Z ▸ Compiling TextResponseSerializer.m
2018-12-10T01:51:35.9856130Z ▸ Compiling TextRequestSerializer.m
2018-12-10T01:51:35.9856920Z ▸ Linking MyApp
2018-12-10T01:51:35.9857780Z ⚠️ ld: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-hjgdkeujtihqvvhkvkijivuagzlb/Build/Products/Release-iphoneos/GoogleToolboxForMac'
2018-12-10T01:51:35.9858710Z ⚠️ ld: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-hjgdkeujtihqvvhkvkijivuagzlb/Build/Products/Release-iphoneos/Protobuf'
2018-12-10T01:51:35.9859570Z ⚠️ ld: directory not found for option '-L/Users/vsts/Library/Developer/Xcode/DerivedData/MyApp-hjgdkeujtihqvvhkvkijivuagzlb/Build/Products/Release-iphoneos/nanopb'
2018-12-10T01:51:35.9860760Z ⚠️ ld: directory not found for option '-Liphoneos'
2018-12-10T01:51:35.9861030Z
2018-12-10T01:51:35.9861860Z ❌ ld: library not found for -lGoogleToolboxForMac
2018-12-10T01:51:35.9861920Z
2018-12-10T01:51:35.9862190Z
2018-12-10T01:51:35.9862290Z
2018-12-10T01:51:35.9862870Z ❌ clang: error: linker command failed with exit code 1 (use -v to see invocation)
我的代码管道包括以下步骤:
我在这里缺少什么?
答案 0 :(得分:0)
我的情况与此相同,但是我需要在6到7之间执行一个额外的步骤来安装可可足类。
答案 1 :(得分:0)
添加iOS之后,我通过在pod install
目录中运行命令platforms/ios/
解决了类似的问题。