cocoapods

Why is Cocoapods complaining about the embedded content contains swift setting in the build settings?

蓝咒 提交于 2019-11-29 22:54:15
I recently added swift files to my test target (combined with older cocoa touch classes). Why is cocoapods complaining about the embedded content contains swift setting in the build settings? [!] The YOURP-PROJECT-Tests [Debug] target overrides the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting defined in Pods/Target Support Files/Pods-YOUR-PROJECT-Tests/Pods-YOUR-PROJECT-Tests.debug.xcconfig. This can lead to problems with the CocoaPods installation I needed to add the $(inherited) flag to the build setting ManuCiao If you replace YES with "$(inherited)" it will fix the issue in the project

Adding several pods increases iOS app launch time by 10+ seconds

可紊 提交于 2019-11-29 22:51:15
I'm doing an iOS app project in Swift 1.2, using Cocoapods 0.37.2, Xcode 6.3.2. After adding around 8 pods in my project, app launch time greatly increases (around 10 seconds more) on device (iPhone 5). (Note: launch time means the time when you tap the app icon to open the app) It is so slow iOS terminates it because it doesn't launch in time. The top of the crash log is as follows... Application Specific Information: com.tryslowappswift failed to launch in time Elapsed total CPU time (seconds): 27.720 (user 27.720, system 0.000), 68% CPU Elapsed application CPU time (seconds): 0.074, 0% CPU

How to reference header files in Bridging-Header.h after updating CocoaPods to 0.36.x and above?

旧巷老猫 提交于 2019-11-29 22:49:25
After updating to CocoaPods 0.36.x, I am unable to add imports into my Bridging-Header.h file. I get the "DBSphereView.h file not found". The file is indeed present in: "Pods/DBSphereTagCloud/DBSphereView.h" "Headers/public/DBSphereTagCloud/DBSphereView.h" "Headers/private/DBSphereTagCloud/DBSphereView.h" My bridge file: #ifndef Loan_Bridging_Header_h #define Loan_Bridging_Header_h #import "DBSphereView.h" #endif I am able to use Frameworks. I have a reference to a well known Framework (Alamofire), and it works great! My podfile: source 'https://github.com/CocoaPods/Specs.git' use_frameworks!

CocoaPods - use specific pod version

眉间皱痕 提交于 2019-11-29 22:45:14
I am using CocoaPods for a macOS app. I have compilation errors with AFNetworking (current version, 1.2.1) and saw that these didn't exist in the previous version (1.2.0). I did some research but did not find a possibility to define the version of a pod (for example, version 1.2.0 instead of 1.2.1). Is this possible or do I have to wait until there is a new version of that library? Marcel In your Podfile: pod 'AFNetworking', '1.2.0' Check 'Get started' at http://cocoapods.org Once this is done, you can then issue a pod update in the terminal for the change to take place. Of course, this needs

iOS Static Library + CocoaPods and the duplicate symbols error

两盒软妹~` 提交于 2019-11-29 22:32:52
问题 I'm developing an Static Library / iOS Framework (Jeff Verkoeyen way) and I've added CocoaPods for manage dependencies (this is the big difference with other questions about duplicate symbols). I've been struggling with the "duplicate symbols" problem when a client that use CocoaPods use my static library / framework and a 3rd party library that I'm using too. I've been reading answers talking about not including 3rd party libraries into a custom static library but I want to do it this way,

Cocoapods can't find header xcode 6

元气小坏坏 提交于 2019-11-29 22:17:30
I have a problem xcode can't find the headers of my pods in my wokspace. The headers search path for the target seems ok Here is the content of my podfile target "MyApp" do pod 'AFNetworking', '~> 2.0' pod 'Reachability' pod 'ViewDeck', '2.2.11' pod 'MBProgressHUD', '~> 0.8' end But when i build the project i have this error in the prefix.pch /Users/...../MyApp-Prefix.pch:17:13: 'AFNetworking.h' file not found I have tried to add platform :ios, "8.0" in my podfile and do a pod update but still no luck I have also tried to add $(inherited) like suggested in the SO question : Xcode 6 doesn´t

Class X is implemented in both <framework> and <application> one of the two will be used, which one is undefined

北城余情 提交于 2019-11-29 22:10:41
I'm getting this warning: Class X is implemented in both <framework> and <application> one of the two will be used, which one is undefined This warning is covered quite a bit across the web but i haven't found anything that answers the specific problem I'm having. Scenario I've built MyFramework and MyApplication (as a test/demo application for MyFramework). MyFramework uses a CocoaPod (which I'll refer to as CoolPod), which I also want to use in MyApplication (and it is reasonable to assume a consumer of MyFramework would also). I need to be able to distribute MyFramework as a .framework (for

Set deployment target for CocoaPods's pod

我的梦境 提交于 2019-11-29 21:22:33
I use CocoaPods to manage dependencies in my project. I've written Podfile: target 'MyApp' do platform :ios, '8.0' # Uncomment this line if you're using Swift or would like to use dynamic frameworks #use_frameworks! # Pods for MyApp pod 'KeepLayout', :git => 'https://github.com/iMartinKiss/KeepLayout', :tag => 'v1.6.0' pod 'EasyMapping' target 'MyAppTests' do inherit! :search_paths # Pods for testing end target 'MyAppUITests' do inherit! :search_paths # Pods for testing end end This file works well with CocoaPods 0.x but I can't compile project after I've updated to CocoaPods 1.0. After I've

Integrate Fabric/Crashlytics via CocoaPods

孤者浪人 提交于 2019-11-29 21:15:32
I try to integrate Fabric/Crashlytics via CocoaPods, my Podfile looks like this: pod 'Fabric/Core', '1.2' pod 'Fabric/Crashlytics', '1.2' But when I try to build my app, the build fails and I get a Shell Script Invocation Error that the run script isn't found: .../Script-F8D74CB61AB5D7A50013D134.sh: line 2: ./Fabric.framework/run: No such file or directory Is it possible to install Fabric only using CocoaPods? Fabric now supports installation with CocoaPods: http://docs.fabric.io/ios/fabric/cocoapods.html If you are just looking for Crashlytics you can use these two pods: pod 'Fabric' pod

Cocoapods dependency in pod spec not working

落爺英雄遲暮 提交于 2019-11-29 20:36:48
I'm getting a syntax error with this spec file: Pod::Spec.new do |s| s.name = "BSImageLoader" s.version = "0.1.3" s.summary = "The image loading framework for PicPoc" s.homepage = "https://bitbucket.org/boolalsofware/bsimageloader" s.license = 'MIT' s.author = { "Spencer Comerford" => "Spencevail@gmail.com" } s.source = { :git => "git@bitbucket.org:boolalsofware/bsimageloader.git", :tag => "0.1.3" } s.source_files = 'Classes/*.{h,m}', 'Classes/PublicHeaders/*' s.public_header_files = 'Classes/PublicHeaders/*.h' s.dependency = 'BSTiledImageView', :git => 'git@bitbucket.org:boolalsofware