- Xcode11.2编译报错,报错如下
error: Multiple comands product 'xxx/Info.plist'
1)Target'xxx'(project 'xxx') has copy command from 'xxx/Info.plist'
2)Target'xxx'(project 'xxx') has process command with output 'xxx/Info.plist'
解决:
![]()
![]()
- xcode编译报错,报错如下
undef: _res_9_getservers
undef: _res_9_ninit
undef: _res_9_ndestroy
解决:
在Build Phases
,新增库libresolv
-
pod install
报错,报错如下
$ pod install
Analyzing dependencies
[!] CDN: trunk Repo update failed - 2 error(s):
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/a/4/fishhook/0.1/fishhook.podspec.json Response: Timeout was reached
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/a/4/fishhook/0.2/fishhook.podspec.json Response: Timeout was reached
解决:
- podfile文件中添加指定source源为master,并保存
source 'https://github.com/CocoaPods/Specs.git'
- 终端执行移除trunk源
pod repo remove trunk
- 执行完成之后,再执行
pod search
orpod install
可以正常进行- podfile文件中一定要指定master源,因为现在默认是trunk源
source 'https://github.com/CocoaPods/Specs.git'
网友评论