cocoapods

'The 'Pods' target has transitive dependencies that include static binaries' when installing GCM

我的梦境 提交于 2019-11-27 04:40:49
问题 I'm trying to install Google Cloud Messaging for my iOS application (using swift). I've added it to my Podfile like so: # Uncomment this line to define a global platform for your project # platform :ios, '8.2' use_frameworks! target 'Project' do pod 'Alamofire', '~> 1.2' pod 'Google/CloudMessaging' end target 'ProjectTests' do end Now when I try to install the dependencies, I get an error (see below). It worked fine before I added GoogleCloudMessaging. I tried to make a new project and add it

The sandbox is not in sync with the Podfile.lock-ios

空扰寡人 提交于 2019-11-27 04:26:14
问题 I have got the following errors after trying multiple answers from the google. PhaseScriptExecution Check\ Pods\ Manifest.lock /Users/apple/Library/Developer/Xcode/DerivedData/Build/Intermediates/FoodSpot.build/Debug- iphonesimulator/FoodSpotTests.build/Script-36819C3C1B6A30F50091382D.sh cd "/Users/apple/Downloads/FoodSpot 2" /bin/sh -c /Users/apple/Library/Developer/Xcode/DerivedData/Build/Intermediates/FoodSpot.build/Debug-iphonesimulator/FoodSpotTests.build/Script-36819C3C1B6A30F50091382D

Error: ld: library not found for -lPods with CocoaPods

若如初见. 提交于 2019-11-27 04:22:16
after i installed DTCoreText ( https://github.com/Cocoanetics/DTCoreText ) with Cocoapods i always get an error when i try to run the simulator or device! ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Release-iphoneos' ld: warning: directory not found for option '-L/Users/example/Desktop/ios/Pods/build/Debug-iphoneos' ld: library not found for -lPods-example clang: error: linker command failed with exit code 1 (use -v to see invocation) in my "Link Binary With Libraries" the "libPods" Part is red: Here are my build Settings: The Settings of my Project:

Cocoapods with private git repository

邮差的信 提交于 2019-11-27 03:36:06
问题 I want to add to podfile private git repository, for example: pod 'MyLibrary', :git => 'git@github.com:perfect/top-library.git', :branch => 'data/myLab' But when I run "pod install" command I receive error: [!] Error installing MyLibrary [!] Failed to download 'MyLibrary'. And the question is how to provide my credentials from git to cocoapods ? 回答1: If you use SSH and have generated a SSH Key (more info here) $>more ~/.ssh/config It should give you something like that: Host SomeHostNameAlias

Undefined symbols for architecture armv7 for Cocoapods libraries

那年仲夏 提交于 2019-11-27 03:04:17
问题 I stumbled upon a problem on a project that I need to work on. The project use Cocoapods for managing its libraries. I run pod install as usual to get started but xcode give me errors. I got Undefined symbols for architecture armv7 as you can see in the image below: All this symbols are the libraries that I use with my project. Eg. AFNetworking, RNBlurModalView. I tried to remove all the Cocoapods related file from the project and running pod install again, but it still doesn't solved the

Type 'NSAttributedStringKey' (aka 'NSString') has no member 'font'

你。 提交于 2019-11-27 03:01:57
问题 Just updated pods for xcode 9 and I'm getting the error below for Cosmos. Type 'NSAttributedStringKey' (aka 'NSString') has no member 'font' 回答1: Note: Ensure swift language version of your project. Here is how you can see/check your swift language version. You have two options as solution to your query: If your project has Swift versio 4.0 - You should choose/download POD compatible to your project's swift language (Share me POD info and swift version, so I can provide you exact pod version

ld: framework not found Pods

China☆狼群 提交于 2019-11-27 02:44:01
I'm trying to add a framework to my IOS project but when I build I always got the same message : ld: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) I tried to remove my Pods directory and then run pod install I open the .xcworkspace like it is written in the logs on the pod install, I clean the project on xcode and then try to build but it won't works.. My podfile looks like this : xcodeproj '/Users/guillaume/project/Mobile/iOS/FoodPin/FoodPin.xcodeproj' source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' use_frameworks

Using Cocoapods in an app extension using a framework

淺唱寂寞╮ 提交于 2019-11-27 02:41:14
问题 I have an app (let's call it MyApp) written in Swift with the following targets : MyApp : the main target MyAppKit : a target building a framework for code that is shared between the app and its extension(s), mainly the API backend and database handling MyAppWidget : a Today View Widget (or whatever it's called now) which uses the MyAppKit framework. The MyAppKit framework is linked into each target that uses it, namely MyApp and MyAppWidget . Enter Cocoapods : I used to have the following

Pod install is staying on “Setting up CocoaPods Master repo”

主宰稳场 提交于 2019-11-27 02:33:31
I'm cloning a project from a git repo, but when I execute pod install the first line I see is "Setting up CocoaPods Master repo" and after that I can't see anything more, the console stops there. I don't know what is happening. Anyone knows what's happening here? Why Does CocoaPods stop there? You could try running in verbose mode: pod install --verbose This'll show you what cocoapods is up to: Setting up CocoaPods master repo Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`) $ /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master Cloning

How do I specify multiple targets in my podfile for my Xcode project?

爱⌒轻易说出口 提交于 2019-11-27 02:30:31
I'm using CocoaPods with my Xcode 4 project and I have three targets for my project (the default, one for building a lite version and one for building a demo version). All the targets use the same libraries, but CocoaPods is only adding the static library and search paths to the primary target. My podfile looks like this: platform :ios, '5.0' pod 'TestFlightSDK', '>= 1.1' pod 'MBProgressHUD', '0.5' pod 'iRate', '>= 1.6.2' pod 'TimesSquare', '1.0.1' pod 'AFNetworking', '1.1.0' pod 'KKPasscodeLock', '0.1.5' pod 'iCarousel', '1.7.4' The only way I was get this to work was to specify each target