cocoapods

watchOS 2 working with CocoaPods

╄→尐↘猪︶ㄣ 提交于 2019-12-05 18:30:19
Has anyone gotten CocoaPods working with watchOS 2? I tried using ‘use_framework!’ with ‘platform :watchos, ‘2.0’ but it says "[!] Invalid Podfile file: Unsupported platform watchos2 . Platform must be :ios or :osx .. Updating CocoaPods might fix the issue.” I am on the latest version of CocoaPods. CocoaPods currently doesn't support watchos. There is a work in progress issue here for adding support for it. CocoaPods released new version which is 0.38.0 and now supports watchOS 2. http://blog.cocoapods.org/CocoaPods-0.38/ According to the blog above, deployment target can be set to watchOS 2

GoogleMaps SDK classes undeclared type or unresolved identifier

安稳与你 提交于 2019-12-05 18:01:47
I am using cocoapods to import libraries. I just updated my pods and since then some of the GoogleMaps SDK classes are not available anymore. For example GMSAutocompletePrediction or GMSPlacesClient labeled as "use of undeclared type" and "use of unresolved identifier". I have tried to remove the GoogleMaps pods and then to reinstall it but it didnt work. Even though, some classes are still usable, like GMSAddress for example. I noticed that GoogleMaps was not one of the target in the Pods project of my workspace, could it be related to my problem ? I finally found the solution. In fact since

How to move from CocoaPods to Carthage?

ⅰ亾dé卋堺 提交于 2019-12-05 17:46:59
My project has linked with like 30 different libraries. Very few of them support Carthage. Do I need to make a branch and make them support Carthage one by one? Is there any better way to do so? The carthage idea is based on frameworks. So if your dependencies do not support them, carthage is unable to build them for you. Simple as that. But: You can use carthage also to manage dependencies only by using the param "--no-build". Then carthage will only fetch the dependencies into your Carthage/Checkouts folder. There are some drawbacks: depending on the project you have to add the projects of

iOS using pod install as Pre-action run script for building the project

孤街醉人 提交于 2019-12-05 17:18:52
I added the Pods/* to the .gitignore, I have the Podfile.lock under the source control. While creating a new branch, I have to run the pod install . As I don't have the pods installed for the new branch. I tried adding the Pre-Action Run Script. The Pre-Action Run Script will do the following Move to the Project Directory Run the pod install . I am able to see all the pods installed. However if I try to build, XCode throws error saying that there is no such module in the source files . 来源: https://stackoverflow.com/questions/39751977/ios-using-pod-install-as-pre-action-run-script-for-building

ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository

前提是你 提交于 2019-12-05 16:55:22
i am trying to run a AWS Cognito service project in which i have added the AWS SDK for iOS but after adding it and trying to run it it shows me the below shown error in the image ERROR: Could not find a valid gem 'cocoapods' (>= 0) in any repository when i crawl it on internet and found some cocoapods install instructions so after trying that i got some other error like below aparajita:Objective-C Aparajita$ sudo gem install cocoapods Password: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr

'Google/Analytics.h' file not found - XCode 7

半城伤御伤魂 提交于 2019-12-05 15:44:35
问题 I am having much trouble integrating Google Analytics SDK into my iOS project. I am using XCode 7 and targeting iOS 7. Using Swift 2.0. However I can get the sample working ok (not converting to Swift 2.0 though). I've tried both install via CocoaPods and by copying the files manually from: https://developers.google.com/analytics/devguides/collection/ios/v3/sdk-download When installing via CocoaPods I've tried both pod 'Google/Analytics' , pod 'GoogleAnalytics' and pod 'Google/Analytics', '~>

Can't Update Google AdMob in iOS Project

与世无争的帅哥 提交于 2019-12-05 15:04:51
I've integrated Google AdMob into my iOS(Swift) project using Cocoapods. It's working fine. When I first saw the log message regarding there is an update for AdMod, I ran pod update BUT the message still gets logged and tells me to update AdMob. From the output of pod update , I see that AdMob is at it's latest version. v 7.8.1 but somehow Xcode does not recognise the change. Any ideas? Update My Podfile: # Uncomment this line to define a global platform for your project # platform :ios, '9.0' target 'En Yakın' do # Comment this line if you're not using Swift and don't want to use dynamic

Lint a Swift cocoa pod with SSZipArchive dependency

懵懂的女人 提交于 2019-12-05 12:59:05
Anyone had any luck creating a pod with a SSZipArchive dependency? My classes are all in Swift but I'm including my bridging file as well (#import "SSZipArchive"). When I try to lint I get 9 errors all related to SSZipArchive. Please let know your thoughts. Thanks so lot! ERROR | SSZipArchive/SSZipArchive/minizip/ioapi.h:45:10: error: include of non-modular header inside framework module 'SSZipArchive.ioapi' NOTE | Target Support Files/Pods-SSZipArchive/Pods-SSZipArchive-umbrella.h:5:9: note: in file included from Target Support Files/Pods-SSZipArchive/Pods-SSZipArchive-umbrella.h:5: ERROR |

What is the proper way of distributing a dynamic framework with a dependency on a static framework?

99封情书 提交于 2019-12-05 12:43:53
I'm building a closed source dynamic framework. It has a dependency on a 3rd party closed source static framework. I link the static dependency framework to my framework's project/target as described in this Apple tech note : That same Apple tech note mentions: The app target is responsible for embedding all of the frameworks, including any frameworks that other frameworks depend on. So I also give my clients a copy of the framework I depend on. However, further down in the same tech note, Apple (referring to embedding static libraries/frameworks) states: Since the binary in these situations

How can I silence warnings from all pods except local pods?

試著忘記壹切 提交于 2019-12-05 12:43:19
问题 I'm assuming something along the lines of post_install do |installer| # Debug symbols installer.pod_project.targets.each do |target| target.build_configurations.each do |config| if ? == ? config.build_settings['?'] = '?' end end end end 回答1: I encountered a similar problem today and figured out two ways to achieve this depending on the complexity of your dependencies. The first way is simple and should work if your local development pods are in your main pod file and not nested in another