cocoapods

iOS开发之同一应用多环境配置

我的梦境 提交于 2019-12-02 09:02:11
有时候我们需要为一个App生成不同环境下的版本,比如Debug版本,Appstore版本,Adhoc版本,之前见到别人都是用多个Target,但其实不用多个Target也行,这个替代方案就是多个Configurations。 如果你是用Xcode5之前的版本,可能参考这两篇文章就行: 如何在一个设备上安装一个App的两个不同版本 iOS开发之同一应用设置不同图标和名称 - 曾静的技术博客 但如果使用的是Xcode5之后的版本,特别是使用了Images.xcasset来设置应用图标,那么配置多环境可能就不那么容易了,还好找到了这篇教程: iOS multi-environment configuration | Blog | AppFoundry 搞定了上面的设置,但是并没有完。如果你的项目使用了Podfile,pod install或者pod update时可能会有下面的提示: 今天在使用pod install的时候,出现了 [!] 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

Alamofire framework not found(Xcode-8.2.1 and iOS 10.2)

这一生的挚爱 提交于 2019-12-02 07:34:53
问题 I have tried so many solutions out there but finally not getting what to do . I just installed cocoa pods for Alamofire and swiftyJson . And now when i clean and build my project i get an error NO SUCH FRAMEWORK ALAMOFIRE when I try import Alamofire in any swift file it says: NO SUCH MODULE ALAMOFIRE My Updated Podfile is something like this( No such framework Alamofire error is solved by this pod file). But still getting No such Module alamofire -: # Uncomment the next line to define a

Pod GoogleMaps not working

你离开我真会死。 提交于 2019-12-02 07:00:51
I know this is very basic, but not able to debug the problem. This is my Podfile. source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.1' pod 'GoogleMaps' I picked this from here . When I try pod install , I get [!] Unable to find a specification for `GoogleMaps` verbose says: Preparing Updating local specs repositories Updating spec repo `master` $ /usr/bin/git pull --ff-only Already up-to-date. Analyzing dependencies Inspecting targets to integrate Using `ARCHS` setting to build architectures of target `Pods`: (``) Finding Podfile changes - GoogleMaps Resolving dependencies of

使用CocoaPods配置iOS百度地图sdk问题记录20191024

感情迁移 提交于 2019-12-02 05:13:06
1、在Podfile中加入添加库名 pod ' BaiduMapKit' #百度地图SDK 2、安装百度地图 pod install 出现问题: [!] Error installing BaiduMapKit [!] /usr/local/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd --template= --single-branch --depth 1 --branch 5.0.0 Cloning into '/var/folders/66/cn9r2_js64116n5r3rjcv3qm0000gn/T/d20191024-3181-1lhmczd'... error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed 3、重新安装CocoaPods sudo gem install -n /usr/local

No Such Module “Sinch” Xcode 9.1 Swift 4

*爱你&永不变心* 提交于 2019-12-02 05:05:33
This question may be duplicate of this " Sinch Integration in swift project " But i am doing all these steps But getting same error " No such module 'Sinch'. Below steps i have followed please check and let me know if i missed any steps or need to add?? I have Added this in my podfile: pod 'SinchRTC' Pod installed successfully with no warning: Added this in Bridge-Header file: #import<Sinch/Sinch.h> Note: Update pod more then 10 times and restarted xcode multiple times. I have done same thing with cocoapod and Bridge-Header and what I found is you don't need to import Sinch in your header. You

cocoapods安装bug

断了今生、忘了曾经 提交于 2019-12-02 04:40:03
看到好多项目都是基于cocopods管理第三方库的,今天就安装了下cocoapods,参考博客上写的安装步骤,发现安装出错。 由于cocoapods是记忆ruby开发的,在terminal下查看ruby版本,再安装。 安装教程其他博客一大堆,我在这里说说在10.11.3这里的区别,terminal输入:sudo gem install -n/usr/local/bin/ cocoapods即可 来源: oschina 链接: https://my.oschina.net/u/1778933/blog/614125

Manifest.lock gives warning about Podfile.lock, what caused?

a 夏天 提交于 2019-12-02 04:01:42
问题 1 - I have tried update cocoapods and re-install pod for my project many times. But Manifest.lock still looks like having a problem. My app works well. Can It be affect something later? How Can I solve it? 2 - In addition Pods_Projectname.framework has red title in Xcode navigator. I continue developing my app but these things worried me, I don't know what happened. I couldn't find solution. Still continue problem, In addition looks below problems: Build Phases - Embed Pods Frameworks: "$

CocoaPods pod install. Modules cannot be imported

我是研究僧i 提交于 2019-12-02 03:44:56
I installed CocoaPods by using $ sudo gem install cocoapods . I have a swift Xcode project with the following podfile platform :ios, '8.2' use_frameworks! target 'Clover' do pod 'Alamofire', '~> 1.2' pod 'SwiftyJSON', '~> 2.2' pod 'ObjectMapper', '~> 0.12' pod 'ImageLoader', '~> 0.3.0' pod 'SVProgressHUD' end target 'CloverTests' do end After I run pod install, which seems to run correct with no error messages, I have a Pods folder generated with Pods.xcodeproject along with several other files. However, when attempting to compile the project, I will into errors telling me my modules are not

Sinch Integration in swift project

南笙酒味 提交于 2019-12-02 03:15:53
I'm trying to integrate sinch into my Swift project using cocoapods #platform :ios, '9.0' use_frameworks! target 'auxilium' do pod 'Alamofire', '~> 4.0' pod 'SinchRTC' end The pod installation work fine but when I try to import the library import Sinch I get this error No such module "Sinch" Any helps here what I've missed !!! thanks Plus I've noticed that my pod doesn't exist in targets : The problem that was that I didn't add the Bridging-Header.h #import <Sinch/Sinch.h> There is no need to import #import<Sinch/Sinch.h> You can directly access example for below code Without importing like

CocoaPods libraries errors building for some iOS simulators

大城市里の小女人 提交于 2019-12-02 03:12:32
Short error: file was built for archive which is not the architecture being linked (i386) Expanded: For some simulators, I receive these errors when building my project: ld: warning: ignoring file /Users/admin/Library/Developer/Xcode/DerivedData/myApp-ekwldvjyuxwkykbareyvvydbtero/Build/Products/Debug-iphonesimulator/libFSCalendar.a, file was built for archive which is not the architecture being linked (i386): /Users/admin/Library/Developer/Xcode/DerivedData/myApp-ekwldvjyuxwkykbareyvvydbtero/Build/Products/Debug-iphonesimulator/libFSCalendar.a ld: warning: ignoring file /Users/admin/Library