cocoapods

CocoaPods podspec lint failure - file not found

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to distribute my pod, but I'm having issues with it's validation. When I'm trying to lint against my .podspec I'm getting: - ERROR | [iOS] [xcodebuild] path/to/my/source/file.m:14:9: fatal error: 'KeyValueObjectMapping/DCKeyValueObjectMapping.h' file not found I tried to preserve the path to their framework with different variations like s.preserve_paths = 'KeyValueObjectMapping.framework/*' or s.preserve_paths = '${PODS_ROOT}/Vendor/KeyValueObjectMapping/KeyValueObjectMapping.framework' & other variations but that way I'm getting

When using cocoapods, what is the best way to change the PRODUCT_NAME?

﹥>﹥吖頭↗ 提交于 2019-12-03 02:55:06
I created an app with name "ABC". Months later I decided to change the name to "ABCD". I believe the way I changed it, was in my Podfile, I changed target "ABC" do to target "ABCD" do . However, I recall going through quite a few issues/errors afterward in my workspace that caused a lot of stress. It was so long ago that I can't quite recall though. Now I'm ready to submit, and I want to change the name one last time. I've changed the name in iTunes Connect, but now I want to change my PRODUCT_NAME, and my bundle identifier to match. What is the best way to do this? Should I change the target

Cocoapods commands fail due to “No such file or directory @ dir_initialize - /Users/<username>/.cocoapods/repos (Errno::ENOENT)”

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can anyone help me resolve the error in the stack trace below? This occurs when I run any pod command. I've uninstalled and reinstalled the gem with no luck. 00:44:05-David~/dev/farecast-app (master)$ pod setup Setting up CocoaPods master repo /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `open': No such file or directory @ dir_initialize - /Users/David/.cocoapods/repos (Errno::ENOENT) from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/pathname.rb:422:in `foreach' from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0

Xcode error when building app: line 7: /resources-to-copy-Project.txt: Permission denied

匿名 (未验证) 提交于 2019-12-03 02:52:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I try to build cordova application in Xcode I get the following error: /Users/User/PhpstormProjects/project/project-app/platforms/ios/Pods/Target Support Files/Pods-Project/Pods-Project-resources.sh: line 7: /resources-to-copy-Project.txt: Permission denied Also I noticed that following file resources-to-copy-Project.txt cannot be found anywhere on my laptop and because of that I tried running pod install with different versions of cocoapods. I already tried adding permissions to folders with chmod a+x. 回答1: Manual solution is to access

Validation Error: Invalid Bundle. The bundle at … contains disallowed file 'Frameworks'

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to submit an app with the Xcode6 GM, and I get this error on validation. The app has an action extension and a dynamic framework that's shared between the extension and the app itself. I don't have a file called 'Frameworks' anywhere in the project, so I'm really not sure what this is supposed to mean. Has anyone gotten this issue or have any ideas? 回答1: Turns out the error is related to using Swift (both the app and the extension make use of Swift). For the app, I had to set: Embedded Content Contains Swift Code: YES and for the

Cocoapods `Embed pod frameworks` took long time to execute

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Environment: Macbook Pro With Retina Display 2013 late with 8G Ram, 256GB ssd. Cocoapods 1.1.1 macOS Sierra 10.12.1 Xcode 8.0 iPhone 6s Installed Pods inhibit_all_warnings! use_frameworks! def import_common_pods pod 'AFNetworking', '~> 2.6.3' pod 'GoogleAnalytics', '~> 3' pod 'SVProgressHUD', '~> 1.1.3' pod 'CocoaLumberjack', '~> 2.3.0' pod 'SVWebViewController', '~> 1.0' pod 'Crashlytics', '~> 3' end def import_project_common_pods pod 'FDFullscreenPopGesture', '1.1' pod 'ImagePicker', :git => 'git@github.com:hyperoslo/ImagePicker.git' pod

Add static library to podspec

泪湿孤枕 提交于 2019-12-03 02:49:54
问题 My podspec requires a static library (OpenSSL). For convenience, I'm shipping the library with the pod. The static library contains: Binaries: MyPod/openssl/bin/libcrypto.a and MyPod/openssl/bin/libsll.a Headers: MyPod/openssl/include/openssl/*.h Its own license (in addition to my project's license): MyPod/openssl/include/LICENSE What is the proper way of expressing this in my podspec? I've seen various example that use combinations of the following properties and I'm currently trying

How to stop react-native link from linking a library with CocoaPods with it has a podspec?

无人久伴 提交于 2019-12-03 02:26:58
I need to use CocoaPods for a specific library. However I don't want to use it for any other because it usually forces me to add React and its dependencies to the Podfile as well, which is a nuisance and can lead to several issues as in previous experiences. In React Native documentation ( https://facebook.github.io/react-native/docs/linking-libraries-ios ) it is specifically said: If your iOS project is using CocoaPods (contains Podfile) and linked library has podspec file, then react-native link will link library using Podfile. To support non-trivial Podfiles add # Add new pods below this

Add cocoapods to tests target too? [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:13:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: Libraries not found when using CocoaPods with iOS logic tests 12 answers I have default project template with tests and cocoapods installed ( pod install ). Pods works fine with main target, but when I try to import something in tests, I get something like Time.m:11:9: 'NSDate-Utilities.h' file not found Does this mean that I should add pods directory to header search path in tests target? Can this be done via cocoapods CLI automatically somehow? That question by suggested link had WRONG answer until

Validation Error: Invalid Bundle. The bundle at … contains disallowed file 'Frameworks'

匿名 (未验证) 提交于 2019-12-03 02:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to submit an app with the Xcode6 GM, and I get this error on validation. The app has an action extension and a dynamic framework that's shared between the extension and the app itself. I don't have a file called 'Frameworks' anywhere in the project, so I'm really not sure what this is supposed to mean. Has anyone gotten this issue or have any ideas? 回答1: Turns out the error is related to using Swift (both the app and the extension make use of Swift). For the app, I had to set: Embedded Content Contains Swift Code: YES and for the