cocoapods

duplicate symbols for architecture x86_64 for GoogleSignIn and GoogleMobileVision

别来无恙 提交于 2019-12-13 09:05:31
问题 not sure if there is anything I can do to fix this? duplicate symbol _OBJC_IVAR_$_MDMPasscodeCache._localAuthenticationInfo in: /Users/USER_NAME/PROJECT/Pods/GoogleMobileVision/Detector/Frameworks/GoogleMobileVision.framework/GoogleMobileVision(MDMPasscodeCache_f189776e75765630b82721fafea64052.o) /Users/USER_NAME/PROJECT/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/GoogleSignIn(MDMPasscodeCache_42de90102bb6814d03833694aafcc99d.o) duplicate symbol _OBJC_IVAR_$_MDMPasscodeCache.

[NSBundle bundleForClass:[self class]]] what does that mean?

杀马特。学长 韩版系。学妹 提交于 2019-12-13 09:04:09
问题 I am now creating cocoapod library. If I want to load json,png and other xib files, I need to use [NSBundle bundleForClass:[self class]]] instead of using main bundle. I wanted to know is this recommend way to do like this and what does that mean? 回答1: Apple uses bundles to represent apps, frameworks, plug-ins, and many other specific types of content. Bundles organize their contained resources into well-defined subdirectories, and bundle structures vary depending on the platform and the type

ld: library not found for -lPods not found in ios?

可紊 提交于 2019-12-13 08:10:17
问题 hello I have download code from bit bucket when we open xcode project it show error like this... diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. but after that I am using terminal then update or pod setup using these links http://www.raywenderlich.com/64546/introduction-to-cocoapods-2 and http://stackoverflow.com/questions/9863836

linker command failed with exit code 1 (use -v to see invocation), build app in xcode-Cocoapods

笑着哭i 提交于 2019-12-13 06:26:13
问题 I am bulding my app in xcode 7, and get the following error: ld: library not found for -lAFNetworking clang: error: linker command failed with exit code 1 (use -v to see invocation) error Cocoapods was used to load the necessary libraries in the app as follows: # Uncomment this line to define a global platform for your project platform :ios, '9.0' target 'myapp' do # Uncomment this line if you're using Swift or would like to use dynamic frameworks # use_frameworks! pod 'AFNetworking', '~> 3.0

CocoaPods 1.0.1 Redefinition of 'XYZ', Redefinition of enumerator 'ABC', Duplicate interface definition for 'MNO'

回眸只為那壹抹淺笑 提交于 2019-12-13 06:14:04
问题 I am upgrading CocoaPods (0.39.0) to latest version (1.0.1) and moving some directly integrated frameworks (copied in the main project instead of using CocoaPods-spec). I am using XCode (7.2.1). Following is the podfile that is used with CocoaPods 1.0.1: platform :ios, '8.0' target 'ABC-v2' do # use_framework is required for dynamic frameworks integration. use_frameworks! pod 'SSKeychain', '~>1' pod 'Mantle', '~>1' pod 'GoogleAPIClient/Drive', '~>1' pod 'GTMOAuth2', '~>1' pod

How do you automate do “Copy Files” in Build Phases using a Cocoapods Post Install Script?

跟風遠走 提交于 2019-12-13 04:48:29
问题 I know this is a rather trivial question, but I seem to be having the worst time with this. I've tried : obj = Xcodeproj::Project::Object::PBXCopyFilesBuildPhase.new(PATH, 10) target.build_phases.add(obj) But the UUID is 0 and nothing is added to the Build Phases. Can someone please help me. I know the rest of my setup is correct. 回答1: Here's my example: phase = target.new_copy_files_build_phase() # Contrary to the docs (see http://www.rubydoc.info/github/CocoaPods/Xcodeproj/Xcodeproj/Project

Xcode Swift pods installation - import file not found

我怕爱的太早我们不能终老 提交于 2019-12-13 04:39:21
问题 I'm working on a project in Xcode written in Swift. I'm using two pods, AFNetworking and BDBOAuth1Manager . They're both Obj-C libraries, so a simple bridging file to import them takes care of everything. Now, the problem arrises when I try to include a third pod, SwiftyJSON , that's written in Swift. Here's what the Podfile looks like: platform :ios, "8.0" use_frameworks! pod "AFNetworking" pod "BDBOAuth1Manager" pod "SwiftyJSON" link_with 'TwitterSearch', 'TwitterSearch Tests' After

CocoaPods version control, must use pod install when cloning repo

被刻印的时光 ゝ 提交于 2019-12-13 04:33:14
问题 I have a question about using CocoaPods and working with version control. I have my project on a repo at GitLab. But if someone wants to clone that repo and work on it they have to use the pod install command. I thought that if you push you project with pods to a repo you don't have to use pod install when cloning it. Or is it something I have done wrong? This is how the current .gitignore file looks: xcschememanagement.plist Pods-AFNetworking.xcscheme Pods.xcscheme Breakpoints_v2.xcbkptlist

How to declare public header files as CocoaPod author?

守給你的承諾、 提交于 2019-12-13 04:18:13
问题 I haven't really done iOS development before, nor have I ever worked with CocoaPods (as a consumer or an author) - but I've been rapidly learning so I can piece together a library for my company. I started a new Objective-C project using pod lib create (it has to be Objective-C for business reasons) and got to work figuring things out. Now I'm trying to figure out how to make my library classes import-able by someone using my pod. I have the following folder structure in Xcode: - bfsdk |-

Podspec - Exclude all but a subfolder

别等时光非礼了梦想. 提交于 2019-12-13 03:49:16
问题 I have a structure like this target_files/ ├──target1/ ├──target2/ └──target3/ And I want to include only "target2" for example and exclude the other targets. How I write the spec.exclude_files? I found this example for excluding files, but I can't understand how to write it for whole folders. spec.exclude_files = '_private/**/*.{h,m}' 回答1: spec.source_files = [ 'target_files/**' ] spec.exclude_files = [ 'target_files/target1/**', 'target_files/target3/**' ] or for the case you ask about,