cocoapods

CocoaPods Installation Failure (Unable to resolve dependencies)

霸气de小男生 提交于 2019-12-05 11:55:52
I have a problem while installing CocoaPods on MacOS X 10.3. The first try fails with a DependencyError for nap. I install nap and try again with the same result. Uninstalling and reinstalling doesn't help. andreass-mbp:~ AndreasB$ sudo gem uninstall cocoapods Password: andreass-mbp:~ AndreasB$ sudo gem uninstall nap Successfully uninstalled nap-1.0.0 andreass-mbp:~ AndreasB$ sudo gem install nap Fetching: nap-1.0.0.gem (100%) Successfully installed nap-1.0.0 Parsing documentation for nap-1.0.0 Installing ri documentation for nap-1.0.0 1 gem installed andreass-mbp:~ AndreasB$ sudo gem install

Firebase Analytics with iOS framework development project

偶尔善良 提交于 2019-12-05 10:51:28
I am adding Firebase analytics using coocapods, my Podfile is platform :ios, '8.0' use_frameworks! workspace 'ProjectWorkspace.xcworkspace' abstract_target 'Shows' do pod 'SwiftProtobuf', git: 'https://github.com/apple/swift-protobuf.git', :tag => '0.9.24' pod 'Firebase/Core' pod 'Firebase/Messaging' target 'HostApp' do project 'HostAppFolder/HostApp.xcodeproj' end target 'HostAppReleaseTarget' do project 'HostAppFolderApp/HostApp.xcodeproj' end target 'FrameWorkProject' do project 'FrameworkProjectFolder/FrameWorkProject.xcodeproj' end end if I add SwiftProtobuf only as dependency it's

Alamofire Swift 2 - cannot submit for beta testing (Xcode 7 GM)

人走茶凉 提交于 2019-12-05 10:21:55
I have followed the instructions on installing the swift2 branch of Alamofire with cocoa pods. The app works well in the simulator, however, when I archive it for submission with Xcode 7 GM I receive an email with an error: "The bundle contains an invalid implementation of Swift. The app may have been built or signed with non-compliant or pre-release tools" This issue definitely relates to the framework as without it I am able to submit for beta testing with the same version of Xcode. I have tried turning bit code OFF in the build settings for Alamofire but it does not help. Does anyone know

Exclude a pod from updating

好久不见. 提交于 2019-12-05 07:47:30
I use Cocoapods. I have made some changes to a 3rd party library and if I run pod update , all those changes would get replaced. Running pod install does the same thing. Is there a way to exclude a pod from updating? Or a way to install a single pod without affecting others? At last Found the Solution. It will install pod without any repository update if you already have the library in the project,else will download pod install --no-repo-update If you want to update specific libraries you can use : pod update [POD_NAME...] Yes, just specify the version you want to install, like if you want to

Cocoapods subspec issue: None of your spec sources contain a spec satisfying the dependency

人走茶凉 提交于 2019-12-05 07:27:46
I modified a repo on Github to integrate a swift version of my library. https://github.com/iDevelopper/PBRevealViewController However when in a new project I try to pod install I get the error: [!] Unable to satisfy the following requirements: PBRevealViewController/Swift (= 1.2.3) required by Podfile None of your spec sources contain a spec satisfying the dependency: PBRevealViewController/Swift (= 1.2.3) . You have either: * out-of-date source repos which you can update with pod repo update or with pod install --repo-update . * mistyped the name or version. * not added the source repo that

iOS 8 extension dependencies issues. Importing one project file to extension view controller

你。 提交于 2019-12-05 06:38:23
I am working on iOS 8 extension. I read many manuals and all of them just show how simple add extension to your app, and seems that's enough. But here are many pitfalls: After adding your extension you will need to import some of your classes to view controller that were created when you added new extension target. The big use here that you will need add all of them and if you have huge project it's not a simple task. Solution can be select extension target then in Build Phases -> Compile Sources press plus button and add all .m files to your target using hot key CMD+A. After adding all files

Is there a way to use a pull request with cocoapods?

十年热恋 提交于 2019-12-05 06:07:26
With swift 3, many cocoapods have been scrambling to keep up with the changes each beta brings. Sometimes these changes aren't merged into a branch quickly. In those cases, is there a way to use a pull request of a branch? Example: https://github.com/MengTo/Spring/pull/187/commits/d791055bc43bba9af8124d2832c2d8cd95ecfc11 You can always specify a specific commit or branch to pull in with your pod file. So, if you wanted the swift3 branch from the master repo, it'd be as simple as: pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch => 'swift3' However, this pull request did

FirebaseMessaging module not found using cocoapods iOS

不羁的心 提交于 2019-12-05 05:25:21
I'm getting a error that 'FirebaseMessaging module not found'. Below is my pod file structure. Official documentation shows Firebase/Messaging is available. I've written in pod file and tried to install it. The stats in terminal doesn't shows FirebaseMessaging installation and same does that pods directory. Below is terminal stats. Where I'm going wrong? Jayprakash Dubey The culprit was Pods! I removed all CocoaPods from Project using this link. Thereafter, I again added Pods to project using this link. It really worked later! This code is from Firebase example Podfile for Messaging. I'll say,

Accidentally ran pod update instead of pod install. Is there any way to revert?

流过昼夜 提交于 2019-12-05 05:19:17
I accidentally ran pod update instead of pod install , and now I have compile errors in my project. Is there any easy way of reverting to my previous pods? I'm thinking of hacking it -- I have my Podfile.lock file under source control, so I can grab the version numbers off that, then lock down the Podfile to those numbers e.g.: pod 'AFNetworking', '2.6.3' But is there a simple command like pod revert or pod undo or something? Otherwise I'll probably just suck it up and update my project code to be compatible to the new pods. If you use git or other version control system, just reset changes in

Cocoapods in subproject

谁说我不能喝 提交于 2019-12-05 05:08:31
I have a project with a subproject. Both the subproject and the main project must use Cocoapods to integrate a library which is seemingly impossible to integrate without Cocoapods. So I have Cocoapods set up for both the Main project and its subproject. The subproject builds in its generated workspace, but compiling the main project produces the following error: ld: library not found for -lPods-Subproject name-Library. The only idea I have right now is that I should somehow get the subproject's Cocoapods repo to use the main project's name, so that when the subproject builds it will check for