cocoapods

How to include AFNetworking as a Framework for using in an iOS App and Extension via CocoaPods

一曲冷凌霜 提交于 2019-11-27 11:33:19
问题 NB: This is related to this question on project structure, but I have decided to a vastly the use-case to better abstract the problem. Problem How do I include afnetworking in my iOS App and an accompanying iOS Extension (ios8-extention, ios8-today-widget or ios8-share-extension) via CocoaPods? Issues For use in Extensions, AFNetworking needs to be build with #define AF_APP_EXTENSIONS , does this mean I need 2 versions AFNetworking? One for the Extension and one for the App? How do I set up

No such module 'RestKit' with cocoapods and swift

怎甘沉沦 提交于 2019-11-27 11:32:08
I am having this problem with a brand new project. This problem happens with both RestKit and Facebook SDK. Strangely SwiftyJSON works just fine. I create a brand new swift project and a Podfile with: source 'https://github.com/CocoaPods/Specs.git' use_frameworks! target 'test-fb-swift4' do pod "FBSDKCoreKit" pod 'SwiftyJSON', '~> 2.1' pod 'RestKit', :inhibit_warnings => true end target 'test-fb-swift4Tests' do end After creating that file I run pod install and reopen xcode with the test-fb-swift4.xcworkspace file. Now inside my controller I put a import RestKit and I get the error No such

CocoaPods/Podspec and *.framework

浪尽此生 提交于 2019-11-27 11:28:56
问题 CocoaPods question: I have created a framework bundled with a static library inside, depending on AFNetworking and a resource bundle (based on those two tutorials to create FWKs http://www.blackjaguarstudios.com/blog/programming/2012/11/22/xcode-45-creating-ios-framework-and-hold-my-hand-im-3-years-old and https://github.com/bclubb/iOS-Framework) I'd love to create a podspec so that people just add a line in their Podfile, which would, on pod install, add my framework and the AFNetworking, if

How do I select a project in my Podfile? I'm getting the error: Unable to find the Xcode project for the target 'Pods'

谁说我不能喝 提交于 2019-11-27 11:27:21
I'm doing the Ray Wenderlich tutorial called SimpleWeather. The podfile is in the same folder as the project. Here's my code from the podfile: platform :ios, '7.0' xcodeproj 'SimpleWeather' pod 'Mantle' pod 'LBBlurredImage' pod 'TSMessages' pod 'ReactiveCocoa' The error message is this: [!] Unable to find the Xcode project /Users/myName/Developer/SimpleWeather.xcodeproj for the target Pods . The name of the project is SimpleWeather. Reiterating our original conversation: Accordingly to Podfile Syntax Reference the Podfile looks right. Make sure you are running $pod install from your project

Cocoapods ld: library not found for -lPods-Projectname

回眸只為那壹抹淺笑 提交于 2019-11-27 11:18:47
I've installed cocoa pods library and some frameworks through it. Now when I compile project the build fails. Error: ld: library not found for -lPods-Project clang: error: linker command failed with exit code 1 (use -v to see invocation) Here part of text: Ld /Users/polzovatel/Library/Developer/Xcode/DerivedData/Project-bybevfqrgvqqldbzsgewqafpmylj/Build/Products/Debug-iphonesimulator/Project app/Project normal i386 cd /Users/polzovatel/Projects/iOS-master/Project_iPhone export IPHONEOS_DEPLOYMENT_TARGET=6.0 export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator

How can I modify OTHER_LDFLAGS via CocoaPods post-install hook?

六月ゝ 毕业季﹏ 提交于 2019-11-27 11:11:45
问题 My project uses CocoaPods and also custom xcconfig files. Until now, this hasn't caused any problems: I've just had to #include the CocoaPods-generated configuration at the end of my custom configuration. However, I've run into a problem where a need to conditionally specify OTHER_LDFLAGS based on the xcconfig , but I can't figure out how to do this. As a start, I've tried simply logging the OTHER_LDFLAGS like this, but the flags aren't actually logged: post_install do |installer

Obj-C CocoaPods + Swift Framework

帅比萌擦擦* 提交于 2019-11-27 11:09:55
问题 I'm creating a Swift framework in the latest Xcode 6 DP4. I need to internally use AFNetworking in my framework, but can't figure out a way to compile it. I know how to use bridging headers, but those aren't supported in Swift frameworks. My framework, Core.framework, looks like this: > Core.h #import <UIKit/UIKit.h> #import <AFNetworking/AFNetworking.h> //! Project version number for Core. FOUNDATION_EXPORT double CoreVersionNumber; //! Project version string for Core. FOUNDATION_EXPORT

Xcode 8 cocoapods abort trap: 6

痞子三分冷 提交于 2019-11-27 11:01:21
问题 localhost:PodTest3 haiwang$ pod install Analyzing dependencies Downloading dependencies Installing MBProgressHUD (0.9.2) Installing Masonry (1.0.2) Generating Pods project Abort trap: 6 After upgrading to Xcode 8, cocoapods doesn't work anymore. I have tried to uninstall and install, but it still doesn't work. 回答1: For me, I solved this issue by uninstalling and then again installing CocoaPods with --pre with the command sudo gem uninstall cocoapods sudo gem install cocoapods --pre Hopefully

Disable bitcode for project and cocoapods dependencies with Xcode 7?

隐身守侯 提交于 2019-11-27 10:51:21
How can you disable bitcode for your project and cocoapod dependencies? Here is the error I get when trying to run my project with Xcode 7. does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64 Edit: Originally only disabled it for one of the targets. Once I disabled all of them and I was able to build successfully. To set this setting in a way that doesn't get overridden each time you do a pod install you can add this to your Podfile post_install

Xcode 8 - Missing Files warnings

淺唱寂寞╮ 提交于 2019-11-27 10:46:00
Ever since upgrading to Xcode 8 using Swift 2.3 I have several missing files warnings. They are all related to pods that I am using. The files that are missing are *.xcscheme *.cpp *.xcuserstate *.swift The pods that are showing missing files are Realm (~38 of 43) TextFieldEffects (~3 of 43) BEMCheckBox (2 of 43) How do I fix this issue? matt This is just an Xcode bug. If you delete or rename a file without then doing a commit, Xcode sees the discrepancy between the previous git commit and the current state of things and reports these warnings. They go away as soon as you do a git add that