cocoapods

Command PhaseScriptExecution failed with a nonzero exit code when using Mapbox

核能气质少年 提交于 2019-12-02 22:55:48
问题 I have had the bellow error for some time now. I have tried creating new projects fixing the problem within the project Resetting all cocoa pods and more And yet I have still not been able to get rid of this error. Error below: /Users/myUsername/Desktop/MapboxMap117/Pods/Target Support Files/Pods-MapboxMap117/Pods-MapboxMap117-frameworks.sh: line 114: local: `/Users/myUsername/Desktop/MapboxMap117/Pods/Mapbox-iOS-SDK/dynamic/826E141E-8875-3C3B-A106-2B772F8A0684.bcsymbolmap': not a valid

GitLab CI with Docker, Fastlane and Cocoapods not working

こ雲淡風輕ζ 提交于 2019-12-02 22:47:17
问题 Desperate help needed: Already asked for the case with gitlab-runner register as "shell", I try to ask a very similar question here with gitlab-runner register as "docker". Since 3 days I try to get Gitlab CI running (using docker, fastlane - all for an iOS-app having Cocoapods dependencies). Here is the error message that the GitLab CI spits out: I did the following steps: install fastlane (link to fastlane page) create a GitLab project and upload your project repository (link to GitLab)

Removing Versions from CocoaPods Specs Repo

久未见 提交于 2019-12-02 22:20:53
I've just published a Beta version of a Pod in the Specs Repo, using pod trunk push . I would like to know if is there any way of removing this version Spec from the Spec Repo. I didn't find any way of doing this via the pod command. CocoaPods now provides a CLI for deleting pods, it can be done with: pod trunk delete PODNAME VERSION Original answer: Removing specs is highly discouraged. If you push a spec intending to remove it later you shouldn't push it in the first place. This is because if any users are using your spec as soon as you remove it their project will break. If this was an

GitLab CI with Fastlane and Cocoapods not working

感情迁移 提交于 2019-12-02 21:47:52
问题 I can't get GitLab CI to work with Fastlane and Cocoapods. Here is the error messages I get during the Gitlab-CI: [!] You cannot run CocoaPods as root. Here the screenshot of the GitLab CI Log: Here is my gitlab-runner register code that I write into a MacOS Terminal: sudo gitlab-runner register \ --non-interactive \ --url "https://gitlab.com/" \ --registration-token "ABCDEFG21sadfSAEGEAERE" \ --description "MyApp runner with shell" \ --tag-list ios \ --executor "shell" After that I type

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

余生长醉 提交于 2019-12-02 21:29:10
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 as a watchOS app. All targets has the flag "Embedded Content Contains Swift Code" set to YES as all of

Access Resources in pod

房东的猫 提交于 2019-12-02 20:51:48
I would like to include image assets in a cocoapod library, but I'm having trouble accessing them. I've read these resources for help: Cocoapods Resources Cocoapods Resource Bundles Mokacoding Resource Bundles David Potter Resource Bundles However, none point me in the direction of accessing the resources. I've tried the following: [UIImage imageWithData:[NSData dataWithContentsOfURL:[(NSBundle *)[NSBundle bundleWithIdentifier:@"Assets"] URLForResource:@"my-image@2x" withExtension:@"png"]]] [UIImage imageWithData:[NSData dataWithContentsOfURL:[(NSBundle *)[NSBundle bundleWithIdentifier:@

What's the difference between 'pod spec lint' and 'pod lib lint'?

梦想与她 提交于 2019-12-02 20:15:46
Cocoapods provides two lint commands, spec lint and lib lint . What's the exact different between them, and in what scenario are they each used? I read the documentation ( spec , lib ), but I can not find the difference between them, and I do not understand why Cocoapods provides two command for the same thing. Loegic TL;DR : pod lib lint = local, pod spec lint = local/remote You mentioned that you had read the docs but it's still unclear. I'll try to make it more clear : pod lib lint Will lint your pod locally, and will just ensure that you provided everything properly to create your pod. But

How can I load an image from Assets.car (compiled version of xcassets) within an NSBundle?

混江龙づ霸主 提交于 2019-12-02 19:39:06
In a nutshell : How can I load images from a compiled Assets.car within an NSBundle ? Full Version: I'm in the process of converting a suite of apps to use CocoaPods . Each app relies on a shared pod called Core . Core includes code files, xib files, and several xcasset files. Here's the relevant line from the Podspec for Core that creates the resource bundle: s.resource_bundles = {'CoreResources' => ['Core/Resources/*']} The Podspec passes pod spec lint , and main project that relies on it correctly builds. However, none of the images from any xcasset files within Core are showing. I am

Cocoapods - Flurry & TestFlight - Undefined symbols for architecture

…衆ロ難τιáo~ 提交于 2019-12-02 19:08:20
I'm upgrading my project to use Cocoapods and when I try building my project for an iOS device or for a simulator I get: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_TestFlight", referenced from: objc-class-ref in PhotoPreviewViewController.o "_OBJC_CLASS_$_Flurry", referenced from: objc-class-ref in MyAppDelegate.o objc-class-ref in InitialSetupViewController.o objc-class-ref in InitialDownloadViewController.o objc-class-ref in HistoryViewController.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Cocoapods OpenCV 2.4.10 Linker Error

天涯浪子 提交于 2019-12-02 18:59:52
I'm trying to build a simple project using OpenCV 2.4.10 but I get a bunch of errors like this: Undefined symbols for architecture x86_64: "_jpeg_free_large", referenced from: _free_pool in opencv2(jmemmgr.o) "_jpeg_free_small", referenced from: _free_pool in opencv2(jmemmgr.o) _self_destruct in opencv2(jmemmgr.o) Here is ViewController.m #import "ViewController.h" #import <opencv2/opencv.hpp> @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; cv::Mat greyMat; } Podfile platform :ios, '8.1' pod 'OpenCV', '2.4.10' Project builds just fine