cocoapods

No such module 'RestKit' with cocoapods and swift

随声附和 提交于 2019-11-26 18:02:06
问题 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

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

99封情书 提交于 2019-11-26 18:01:04
问题 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. 回答1: Reiterating our original conversation: Accordingly to

Use Cocoapods with an App Extension

杀马特。学长 韩版系。学妹 提交于 2019-11-26 17:54:27
问题 I'm trying to build a photo App Extension in Xcode 6 Beta-6 that uses cocoapods libraries. The bridging header that Xcode creates for the photo extension can't see anything from cocoapods. For example: #import <GPUImage/GPUImage.h> results in the error "GPUImage/GPUImage.h" file not found . I've tried every conceivable path for the import (with brackets and quotes) and have had almost no success. The exception is that for simple pods like SVProgressHUD , the following ugly terrible hack works

How to load resource in cocoapods resource_bundle

给你一囗甜甜゛ 提交于 2019-11-26 17:44:05
问题 I have struggled a lot to how to load resource in cocoapods resource_bundle. The following is what i put in the .podspecs file. s.source_files = 'XDCoreLib/Pod/Classes/**/*' s.resource_bundles = { 'XDCoreLib' => ['XDCoreLib/Pod/Resources/**/*.{png,storyboard}'] } This is what I am trying to do from the main project. let bundle = NSBundle(forClass: XDWebViewController.self) let image = UIImage(named: "ic_arrow_back", inBundle: bundle, compatibleWithTraitCollection: nil) print(image) I did see

How to remove the Xcode warning Apple Mach-O Linker Warning 'Pointer not aligned at address

ぐ巨炮叔叔 提交于 2019-11-26 17:34:38
问题 I have a slight issue when build my Xcode project, get tones of warning after update pod. It looks like this Already search the whole site here but still no luck. it doesn't affect the project but it is quite annoying. Anyone could help? 回答1: It probably means their binary file has non-aligned pointer when they compile their code. In those cases the alignment basically defaults to 1 byte and hypothetically might impact performance. After updating to Xcode 8.3 public release I am still seeing

Unexpected CFBundleExecutable key

为君一笑 提交于 2019-11-26 17:11:58
After spending some time googling, something tells me that the issue is new. We had a fully functional project supporting iOS7-8. Of course it was multiple times successfully submitted to AppStore. We use pods, lots of tracking and monitoring, like GA and Instabug. Now we decided to submit a version of the app built on Xcode 7 on iOS 9 to TestFlight. We disabled bitcode, since many pods, like Flurry and other prebuilt libraries does not include it. The build was successful, after the submission to iTunesConnect we get this: We had same for GoogleAppIndexing library (in pods too), but we

“No such module 'Alamofire'” Xcode won't recognize Alamofire framework

拈花ヽ惹草 提交于 2019-11-26 16:36:07
问题 I realize that the same error was asked in other questions (like here), but their solutions are not working for me. I keep getting a build failure in my app: "No such module 'Alamofire'". I followed the cocoadocs installation instructions (here) for installing Alamofire and it still is not working. I made sure everything has the same deployment target. Embedded Binaries and Frameworks Here's my podfile text. source 'https://github.com/CocoaPods/Specs.git' platform :ios, ‘9.2’ use_frameworks!

Cannot Import Firebase Into Swift Class

谁说胖子不能爱 提交于 2019-11-26 16:22:55
问题 I am totally new to Firebase and building iOS apps. In Xcode 7, I am trying to import Firebase into my Swift class. In a swift file, I have typed "import Firebase". I am getting an error that says "No such module 'Firebase'" Any help would be greatly appreciated. 回答1: There are two ways to install Firebase: manually, and with CocoaPods. I recommend using CocoaPods. In your Podfile , make sure you specify use_frameworks! : platform :ios, "9.0" use_frameworks! target 'MyProject' do pod

React Native XCode Project Product Archive Fails with duplicate symbols for architecture arm64

痞子三分冷 提交于 2019-11-26 15:59:11
问题 Strangely, I can't seem to get Archive to work in XCode but the build succeeds without the errors on duplicate symbols if I do not attempt to Archive but simply build a release version. The project builds properly on devices as well. I have searched up on this topic and tried disabling testability, and setting the 'No Common Blocks' in the project settings to NO as well but no luck so far. The Project is a React Native 0.40 based project with CocoaPods installed as well. PodFile is this # You

Pod Error in Xcode “Id: framework not found Pods”

喜夏-厌秋 提交于 2019-11-26 15:45:24
问题 I am trying to clone a project from a bitbucket repository and am getting an error Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) when trying to run an Xcode project in workspace. These are the steps I have followed, if anyone could let me know what I am doing wrong, that would be great! git clone (link to bitbucket) changed the configuration settings in the Xcode pods project to none for both debug and release performed pod