iOS常见问题总结

1,This app could not be installed at this time.
1.点击模拟器: 
选择: 
Hardware -> Erase All content and settings;清空模拟器的缓存 
2.点击项目: 
把项目清一下 
shift+cmd+K 
shift+opt+cmd+K 
3.重新运行就OK
2,cocoapods发布命令

##########私有:

//验证
pod spec lint xxx.podspec --allow-warnings --verbose --use-libraries --sources='git@gitlab.xxx.com:xxx.git,https://github.com/CocoaPods/Specs'
//推送修改
pod repo push xxx --allow-warnings  --verbose --use-libraries 
//第一次添加库
pod repo add xxx  https://xxxx.git

##########公共:

   //验证
  pod spec lint xxx.podspec --allow-warnings  --verbose --use-libraries
  //发布
  pod trunk push xxx.podspec --allow-warnings  --verbose --use-libraries
   //添加到本地pod和远程对应(第一次)
   pod repo add xxx git@xxx.git 

##########私有库制作:

       1. 本地仓库路径------> cd ~/.cocoapods/repos
       2. 添加远程索引库----> pod repo add  xxx  git.xxx.git
       3. 创建库模板demo---> pod lib create  xxx

//找不到库?
rm ~/Library/Caches/CocoaPods/search_index.json

pod update --no-repo-update 更新

3, 静态库没法使用 use_frameworks! 标记

pod报错: target has transitive dependencies that include static binaries

参考:https://www.jianshu.com/p/7f6a7e1b3235

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。