Currently I'm using Swift 3, and after I install a new Pod I received this error
Here's my Pod
I can't even clean the project, I tried Pod update but the error persists. What should I do to fix this problem?
Must Add line
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'Bolts', '~> 1.8'
pod 'Cosmos', '~> 12.0'
end
Now you can install the dependencies in your project:
$ pod install
Related
I'd like to add cordova as a pod dependency, just like I do for other dependencies.
use_frameworks!
target 'MyApp' do
pod 'SwiftyJSON', '~> 2.3'
pod 'Cordova'
end
When I run pod install, I receive: "Unable to find a specification for Cordova"
I am getting the following error when deploying to AppStore
ERROR ITMS-90205 The bundle contains disallowed nested bundles podfile
Both my App and Today Extension use Swift pods.
Here's my Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'Fabric'
pod 'Crashlytics'
pod 'Alamofire', '~> 3.0'
pod 'Eureka', '~> 1.0'
pod 'NSString-HTML', '~> 0.0'
pod 'TSMessages', :git => 'https://github.com/KrauseFx/TSMessages.git'
pod 'MCSMKeychainItem'
pod 'HTProgressHUD', '~> 0.2.1'
pod 'DZNEmptyDataSet'
pod 'TOWebViewController', '~> 2.0.5'
pod 'SimulatorStatusMagic', :configurations => ['Debug']
end
target 'MyAppTodayExtension' do
pod 'Alamofire', '~> 3.0'
pod 'NSString-HTML', '~> 0.0'
pod 'MCSMKeychainItem'
end
What am I doing wrong?
UPDATE: After installing a custom Run Script build phase for my Today Extension that removes the Frameworks directory, I am able to upload to App Store.
cd "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/"
if [[ -d "Frameworks" ]]; then
rm -fr Frameworks
fi
But is there another way that is supported by CocoaPods?
Try downgrading cocoapods to 0.38.2 version. I had that problem and I fixed by downgrading.
https://github.com/CocoaPods/CocoaPods/issues/4203
I followed these instructions: http://docs.aws.amazon.com/mobile/sdkforios/developerguide/install-ios-sdk.html
But I still get all these missing dependencies: http://screencast.com/t/o2oaYFctzg
How do I fix this?
So I had issues with this for a while too. A bit confusing if it is your first dependency manager.
So open up terminal and follow these steps:
gem --help to check if you have RubyGems. If not go HERE
sudo gem install cocoapods IT TAKES A WHILE, be patient, it will go
Now, once that's done, cd into your directory where your .xcodeproj is
Create your Podfile: nano Podfile NO extension
Include your packages pod 'AFNetworking', '~> 2.0' for instance
And all your AWS packages:
source 'https://github.com/CocoaPods/Specs.git'
pod 'AWSCore'
pod 'AWSAutoScaling'
pod 'AWSCloudWatch'
pod 'AWSDynamoDB'
pod 'AWSEC2'
pod 'AWSElasticLoadBalancing'
pod 'AWSKinesis'
pod 'AWSLambda'
pod 'AWSMachineLearning'
pod 'AWSMobileAnalytics'
pod 'AWSS3'
pod 'AWSSES'
pod 'AWSSimpleDB'
pod 'AWSSNS'
pod 'AWSSQS'
pod 'AWSCognito'
Exit and save from nano CTRL+X
pod install
Open your .xcworkspace
I've been trying to resolve this issue for 3 hours and I tried everything that's on the web but nothing seems to work, I'm just trying to add the (login in with Facebook) button on an app connected to parse.
I even started a new project from scratch to see if the same issue would appear and it did.
the error: (clang: error: linker command failed with exit code 1 (use -v to see invocation))
It appeared after doing 'pod install' in both apps, this is what I have in my Podfile:
platform :ios, '8.1'
xcodeproj 'carpoolup'
target :carpoolup, :exclusive => true do
pod 'Parse'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4'
pod 'ParseTwitterUtils'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
end
please help, what does this error mean?
Try adding use_frameworks! after the platform line to force cocoapods to use frameworks.
Example from cocoapods.org:
platform :ios, '8.0'
use_frameworks!
target 'MyApp' do
pod 'AFNetworking', '~> 2.6'
pod 'ORStackView', '~> 3.0'
pod 'SwiftyJSON', '~> 2.3'
end
I updated CocoaPods today (sudo gem install cocoapods). After performing pod install the project won't compile anymore. It seems that headers from the pod are not longer found by the project.
Did something change in the recent cocoa pods version(s)?
The following is my pod file:
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
pod 'CocoaLumberjack'
pod 'RestKit', '~> 0.20.0'
pod 'RestKit/Testing'
pod 'NLTHTTPStubServer'
pod 'Appsee'
pod 'google-plus-ios-sdk', '1.7.0'
Fix is simple and the error tells what to do. Add this to the top of your Podfile:
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
Here's the Github issue with more details - https://github.com/CocoaPods/CocoaPods/issues/2515
Update
Make sure you create the Podfile in the root of your Xcode project directory. Here's what your Podfile should look like -
source 'https://github.com/artsy/Specs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
inhibit_all_warnings!
# Pods
pod 'RestKit', :head
pod 'RestKit/Testing', :head
pod 'CocoaLumberjack', :head
pod 'NLTHTTPStubServer', :head
pod 'Appsee', '~> 2.1'
pod 'google-plus-ios-sdk', '~> 1.7.0'
In your terminal -
Update RubyGems - sudo gem update
Update Cocoa Pods - sudo gem install cocoapods
In your project directory -
Remove pods - rm -rf Pods/
Install pods - pod install
I was in the same position as you, and finally decided to roll back the CocoaPods version I had installed (which solved my problem)
Luckily my Podfile.lock file was under version control, so I pulled up the file to see what the last version of Cocoapods I had used. The last line of my Podfile.lock was:
COCOAPODS: 0.33.1
So here is how I solved my issue
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 0.33.1
rm -rf Pods
pod install