cocoapods

Cocoa pods and Watchkit Extesion

大兔子大兔子 提交于 2019-12-03 08:02:44
I try to build a WatchKit Extension for my app... I Updated the pods file to look like this: platform:ios, '8.0' use_frameworks! source 'https://github.com/CocoaPods/Specs.git' link_with 'my-team-ios', 'My Team WatchKit Extension' def shared_pods pod 'DOSingleton' pod 'JSONModel' pod 'MagicalRecord' end target :'My App' do shared_pods pod 'Facebook-iOS-SDK', '~> 3.23.1' pod 'Reveal-iOS-SDK', :configurations => ['Debug'] ... some more pods here... end target :'My Team WatchKit Extension' do shared_pods end How I install the pods and don't get an error... But, when I build the App, I get this

Should we commit pod files to version control system (GIT or SVN)

£可爱£侵袭症+ 提交于 2019-12-03 07:48:15
问题 So far I was working on an app and my Team Lead said not to commit the pod files and I just followed his instructions. Then our Lead changed and he said to commit the pod file to Git. So I was confused which one to go with. Should we commit the pod file or not and if we should not then why. Please help me clear on this thing as I went through some articles as well but didn't find any satisfactory answer. 回答1: Whether or not you check in your Pods folder is up to you, as workflows vary from

iTunes Connect - Invalid Swift Support - The Watch OS application has Swift libraries at both

本秂侑毒 提交于 2019-12-03 07:48:14
问题 After archiving and uploading my app (using Xcode 7.2.1) to iTunes Connect I receive an email from iTunes Connect saying: Invalid Swift Support - The Watch OS application has Swift libraries at both /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/TodaysReactiveMenuWatch Extension.appex/Frameworks/ and /Payload/Today's Menu.app/TodaysReactiveMenuWatch.app/Frameworks/. Remove all of the Swift libraries from one of the locations and resubmit your app. My project contains an iOS app as well

How to remove specific pod without touching other dependencies

二次信任 提交于 2019-12-03 07:46:06
问题 I want to remove specific dependency using cocoapods. if I execute pod install, other dependencies are getting updated before removing the dependency I want to delete. I just want to remove specific pod without touching any others. And I know deleting, updating any dependency also updates others. Is there any way to solve this problem? Actually my problem is when I modify some dependency (AFNetworking for example) and run pod install it reverts back to its original version. But I don't want

App Invite configuration failed Firebase iOS cocoapods

青春壹個敷衍的年華 提交于 2019-12-03 07:26:52
I got a build error with this in it while trying out the new version of firebase *** Terminating app due to uncaught exception 'com.firebase.appinvite', reason: 'App Invite configuration failed.' Click on your project Navigate to Info tab Scroll down you will see the URL Types Click the + button and add your bundleID to URL Schemes Click the + button again and add your REVERSED_CLIENT_ID to URL Schemes . This can be found in your GoogleService-Info.plist Finally your URL types should look something like this The Invites pod does require setting up a couple of custom URL schemes, which is easy

CocoaPods UIImageView+AFNetworking.h unrecognized selector setImageWithURLRequest

房东的猫 提交于 2019-12-03 07:11:46
I have installed AFNetworking 2.1.0 with CocoaPods on Xcode 5. //ViewController.h #import <AFNetworking/AFNetworking.h> #import <AFNetworking/UIImageView+AFNetworking.h> Calling setImageWithURLRequest on an UIImageview the application fail with this log: This is the error log: 2014-02-07 11:55:19.984 OPS[1717:60b] *** Terminating app due to uncaught exception'NSInvalidArgumentException', reason: '-[UIImageViewsetImageWithURLRequest:placeholderImage:success:failure:]: unrecognized selector sent to instance 0x147b06d0' I've found some discussion on this issue, but the provided solution (adding

AFNetworking won't compile

那年仲夏 提交于 2019-12-03 06:41:39
I'm totally stuck trying to run a project on the simulator using AFNetworking. I've used this dependency before on other projects, so I don't understand what is going wrong here. First, the error when I try to run the project: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_AFHTTPSessionManager", referenced from: _OBJC_CLASS_$_SharedNetworkObject in SharedNetworkObject.o "_OBJC_CLASS_$_AFJSONResponseSerializer", referenced from: objc-class-ref in SharedNetworkObject.o "_OBJC_METACLASS_$_AFHTTPSessionManager", referenced from: _OBJC_METACLASS_$_SharedNetworkObject in

Getting 'no such module' error when importing a Swift Package Manager dependency

末鹿安然 提交于 2019-12-03 06:19:16
问题 I'm running Xcode 11 Beta 4. I'm using CocoaPods, and wanted to use one of my dependencies with Swift Package Manager as a static library instead of as a framework. On a fresh project created with Xcode 11, the dependency can be imported successfully, but on my existing CocoaPods workspace, it does not. I think it's likely related, but I'm also getting this link warning in Xcode: directory not found for option '-L/Users/username/Library/Developer/Xcode/DerivedData/App

<PBXResourcesBuildPhase UUID=..> attempted to initialize an object with an unknown UUID

时光毁灭记忆、已成空白 提交于 2019-12-03 06:09:04
I have taken SVN check-in for a project. Thereafter I have installed pod via terminal . After installation of pod there are few warning stating <PBXResourcesBuildPhase UUID=...> attempted to initialise an object with an unknown UUID. What might be reason? Is this warning critical ? Qiulang The reason that happened in my case was some developer updated a pod A while I installed a new pod B (without updated pod A). So when I merged his codes I got the warning. An easy way to fix this is to 1. remove libPods.a from General->Linked Frameworks and libraries 2. run `pod install` or `pod update "an

Integarte/Install cocoapods to existing xcode project, objective-c or swift

瘦欲@ 提交于 2019-12-03 05:46:04
问题 I was looking for integrating cocoapods to my existing xcode projects. I found these few post but they are based on issue instead my problem. not able to acess installed pods framework How to add cocoapods to existing workspace not project (this one is for work-space not project) Making a CocoaPod from an existing Xcode project (this one is more on integrating swift with objective c project) So I spending quality time i did for my project. I am sharing step by step integration in my answer