解决cocoapods diff: /../Podfile.lock: No such file or directory以及iOS开发同一应用多环境配置的问题

有时候咱们须要为一个App生成不一样环境下的版本,好比Debug版本,Appstore版本,Adhoc版本,以前见到别人都是用多个Target,但其实不用多个Target也行,这个替代方案就是多个Configurations。html

若是你是用Xcode5以前的版本,可能参考这两篇文章就行:ios

如何在一个设备上安装一个App的两个不一样版本git

iOS开发之同一应用设置不一样图标和名称 - 曾静的技术博客app

 

但若是使用的是Xcode5以后的版本,特别是使用了Images.xcasset来设置应用图标,那么配置多环境可能就不那么容易了,还好找到了这篇教程:ui

iOS multi-environment configuration | Blog | AppFoundry.net

 

搞定了上面的设置,可是并无完。若是你的项目使用了Podfile,pod install或者pod update时可能会有下面的提示:code

今天在使用pod install的时候,出现了htm

[!] CocoaPods did not set the base configuration of your project because your project already has a custom config set. In order for CocoaPods integration to work at all, please either set the base configurations of the target `项目名` to `Pods/Target Support Files/Pods-项目名/Pods-项目名.release.xcconfig` or include the `Pods/Target Support Files/Pods-项目名/Pods-项目名.release.xcconfig` in your build configuration.blog

 

解决方案以下:教程

参考:

CocoaPods did not set the base configuration of your project 问题解决方案 - 月若无涯的专栏 - 博客频道 - CSDN.NET

CocoaPods Error with undefined symbols for architecture armv7 - 简书

相关文章
相关标签/搜索