cocoapods

Error ITMS-90206 Invalid bundle contains disallowed file 'Frameworks'

牧云@^-^@ 提交于 2019-12-18 11:56:21
问题 I have a problem uploading my application into the Store via Xcode, this one in particular. I saw a lot of post about this error, but all are talking about Extension App , that I do not use. I'm using a Custom framework and Cocoapods . You can see here my tree : XXX is my project app name SharedXXX is my custom framework Pods is the project created by cocoa pods Here is my cocoa podFile : use_frameworks! link_with 'XXX', 'SharedXXX' source 'https://github.com/CocoaPods/Specs.git' platform

What exactly does `pod repo update` do?

可紊 提交于 2019-12-18 11:38:06
问题 I'm following an internet tutorial on Firebase and as part of it I had to do some work in the command line. I'm pretty comfortable with the command line, but I'm unfamiliar with Cocoapods. I ran pod repo update but after doing so I realized I ran it on my entire Documents folder of my Mac instead of the folder that contained my project. I took over 20 mins to execute and it printed out literally thousands of things when it finally completed, some of which included "create" and "deleted". I

Cocoapods + Cannot load underlying module for 'x'

被刻印的时光 ゝ 提交于 2019-12-18 11:14:27
问题 I am running XCode 7, Swift 2.0, iOS 9. I want to install Alamofire in my project using Cocoapods. I have done the following: gem install cocoapods pod setup pod init Updated Podfile to: # Uncomment this line to define a global platform for your project # platform :ios, '9.0' use_frameworks! target 'JSONeg' do pod 'Alamofire', :branch => 'swift-2' end Then I installed the pod: pod install And I added the following to ViewController.swift import Alamofire This raises the following error:

Localization and CocoaPods

拜拜、爱过 提交于 2019-12-18 11:07:05
问题 I have a project that uses CocoaPods. As a result, I have a workspace which contains two projects: mine and Pods. Pods contains code which I'd like to localize, and I've created .strings files in Pod. However, NSLocalizedString fails to load these strings. I suspect this happens because the .strings file is not in the main bundle, but there's no Pod bundle, because it is compiled into a static library. Is there a better way to localize code in a CocoaPods project than in my main project? 回答1:

Add run script build phase to Xcode project from podspec

两盒软妹~` 提交于 2019-12-18 10:52:36
问题 I'm trying to write Cocoapods specification for my library which must modify Xcode project and add "Run Script Build Phase" to project's target. I thought I can use post_install hook. But " pod spec lint " says that this hook is deprecated: - WARN | [iOS] The post install hook of the specification DSL has been deprecated, use the `resource_bundles` or the `prepare_command` attributes. I have no idea how I can replace post_install hook with *resource_bundles* or *prepare_command*. Who knows

Cannot Install Cocoapods - No podfile found in the project directory

a 夏天 提交于 2019-12-18 10:43:37
问题 I downloaded a sample project to learn how to make a UIPageViewController, and I am trying to essentially fork that project and need to add a third-party library. Right now, it does not look like I have a .xcworkspace file in my project. When I try and install the cocoapods, I first run sudo gem install cocoapods - in the specific project directory in my terminal pod install - in that same directory I am receiving an error in the terminal "No podfile found in the project directory." Is this

Why is Cocoapods complaining about the embedded content contains swift setting in the build settings?

时光总嘲笑我的痴心妄想 提交于 2019-12-18 10:41:38
问题 I recently added swift files to my test target (combined with older cocoa touch classes). Why is cocoapods complaining about the embedded content contains swift setting in the build settings? [!] The YOURP-PROJECT-Tests [Debug] target overrides the EMBEDDED_CONTENT_CONTAINS_SWIFT build setting defined in Pods/Target Support Files/Pods-YOUR-PROJECT-Tests/Pods-YOUR-PROJECT-Tests.debug.xcconfig. This can lead to problems with the CocoaPods installation 回答1: I needed to add the $(inherited) flag

Cocoapods: turning MagicalRecord logging off

﹥>﹥吖頭↗ 提交于 2019-12-18 10:19:08
问题 Turning MagicalRecord logging off requires a #define to be made before it is first included in the project, but in the case of a project managed by Cocoapods I have no access to add a #define in the Pods project. How do I turn logging off completely in this scenario? Took me a few hours to figure out a way to do it, posting here in the hope it will help others. EDIT: this is not a duplicate as it discusses turning logging off under Cocoapods 回答1: You can use a post_install hook to modify

Xcode 9 : Module compiled with Swift 3.1 cannot be imported in Swift 4.0

大兔子大兔子 提交于 2019-12-18 10:13:09
问题 After updating to Xcode 9, I tried to build one of my projects. I use the FacebookLogin pod. I have a compiler error in FacebookLogin/LoginButton.swift @testable import FacebookCore ❌ Module compiled with Swift 3.1 cannot be imported in Swift 4.0 In my target's build settings, the Swift language version is set to Swift 3.2 . I guess I need to wait for Facebook to update their pod ? Or any other suggestion ? Thanks ! 回答1: Update: Solution also tested and working in Swift 5 and Xcode 11.

Creating an iOS Simulator Build of CocoaPods project

耗尽温柔 提交于 2019-12-18 10:09:32
问题 I need to create a simulator build in order to submit my app to facebook team for further review of my open graph. They have a instruction to create that here facebook instruction But I use cocoapods and I can not make this build. everytime it gives me error. 回答1: xcodebuild -arch i386 -sdk iphonesimulator{version} -workspace [projectName].xcworkspace -scheme [projectName] Follow the steps Click here 回答2: Here is the another easy method to create .zip file Step 1: open finder and press