cocoapods

Failed to demangle superclass with Cocoapods in Xcode 10.2

别来无恙 提交于 2019-12-05 00:16:28
After moving to Xcode 10.2, when running my app I get a crash with the error failed to demangle superclass of MyClass from mangled name MySuperClass . The crash occurs when I try to create an instance of MyClass. I am using CocoaPods 1.6.1 and have not yet upgraded to Swift 5. The class in question is defined inside a Pod, and is a subclass of a class defined a different Pod (listed as a sub dependency of the first Pod). Adding to the complexity (unsure if it is related) is that the super class takes a generic, and the sub class defines a concrete type and does not take a generic. I.e. //

Cocoapods Installation Error on macOS Sierra 10.12.1

放肆的年华 提交于 2019-12-04 23:10:19
问题 I'm getting this error when i'm trying to install cocoapods : $ sudo gem install cocoapods ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/fuzzy_match I have gem version 2.6.7 installed, macOS 10.12.1 can anyone help please..or have instructions how to install cocoapods on 10.12.1 回答1: I have a similar problem and it solved by using 2nd solution, try to run these commands either in solutions 1 or 2 at terminal I'm running osx 10.12.1 ERROR: While executing gem

Use 3rd party pod in sub-project (framework project)

我是研究僧i 提交于 2019-12-04 22:54:52
I am using XCode 8 + Swift 3. I created a fresh iOS project named " MyApp ". Then, I create a Cocoa touch framework project, named "MySubProject". (The idea is to have MyApp project accessing MySubProject code.) They are on the same level folder: - MyApp/ - MySubProject/ I added MySubProject into MyApp project, linked the MySubProject framework. Everything works fine. My project structure looks like this: All works until here! (MyApp code can access MyService code) Now, I need MySubProject to use Alamofire to communicate with backend. So, under MySubProject/ I setup the Alamofire with CocoaPod

Xcode 11 beta 4 error: Command CompileSwiftSources failed with a nonzero exit code

偶尔善良 提交于 2019-12-04 22:14:22
I've downloaded the latest Xcode beta 4. When I build I'm getting the same error with 3 of my pods: Command CompileSwiftSources failed with a nonzero exit code <unknown>:0: error: unknown argument: '-w' <unknown>:0: error: unknown argument: '-Xanalyzer' <unknown>:0: error: unknown argument: '-analyzer-disable-all-checks' This is the MarqueeLabel pod logs: I have tried: Cleaning and deep cleaning ( shift + alt + cmd + k ) Deleting the Derived Data folder Restarting Xcode I can't see the error listed in the release notes. https://developer.apple.com/documentation/xcode_release_notes/xcode_11

I need a UISlider with value on the handle [closed]

对着背影说爱祢 提交于 2019-12-04 22:09:48
I need to make a UISlider in my iOS App with the value of the slider in the handle. Demo image of what I mean: Is there a pod that could do it? You dont need neither any third party control nor you will have to create a slider on your own. You can still use the UISlider and customise it as per your need :) Step 1: As we can see we need to set the colour for minimum track and as it is not default white isn't it ??? Its somewhat orange, I dont know exact coolor of it hence am setting it to red. You set whatever colour you want :) But UISlider's setMinimumTrackImage expects a UIImage not colour.

CocoaPods podspec lint failure - file not found

回眸只為那壹抹淺笑 提交于 2019-12-04 21:41:47
问题 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

Is Cocoapods down?

心已入冬 提交于 2019-12-04 21:10:58
I am updating pods in my project. But cocoapods stucked at "Analyzing dependencies" stage. So I created a sample app to just test cocoapods. Here is my very simple podfile: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '8.0' pod 'Masonry' But result is same. Its stuck at "Analyzing dependencies" stage. You can debug what's going on with: pod install --verbose Chances are CocoaPods is updating your local copy of the specs repo. If this is your first time installing pods on your current machine you can use pod setup Optionally with --verbose to watch this clone happen. This

Error “No such module” when installed framework with pod in swift 3

血红的双手。 提交于 2019-12-04 20:52:05
I had manually added Alamofire, realm and swiftjson framework in my swift project. At that time my project was working properly. Now I created a Podfile in my project directory and added the following pods pod 'Alamofire' pod 'RealmSwift’ pod 'SwiftyJSON' It is successfully installed. I opened .xcworkspace and tried to import the framework. But is showing error message "No such module Realmswift", "No such module Alamofire", "No such module SwiftyJson". Framework search paths are as follows: $(inherited) $(PROJECT_DIR)/app_name/Frameworks $(PROJECT_DIR) Even "Build Active Architecture Only" is

iOS pod install gcm and pnchartswift

元气小坏坏 提交于 2019-12-04 20:51:40
I use PNChartSwift and GCM in my Project . I need use "use_frameworks!" for PNChartSwift in PodFile so for GCM i must not use "use_frameworks!" in PodFile How will i use gcm ? Log error "pod install" Using PNChartSwift (0.0.2) Using STZPopupView (1.0.1) [!] The 'Pods' target has transitive dependencies that include static binaries: (/Users/Sina/Desktop/MyShatelIOS/MyShatel/Pods/GGLInstanceID/Libraries/libGGLInstanceIDLib.a, /Users/Sina/Desktop/MyShatelIOS/MyShatel/Pods/Google/Libraries/libGGLCloudMessaging.a, /Users/Sina/Desktop/MyShatelIOS/MyShatel/Pods/Google/Libraries/libGGLCore.a, /Users

Unable to find a pod with name, author, summary, or description matching `xxx`

扶醉桌前 提交于 2019-12-04 20:15:22
pod search xxx and then output Unable to find a pod with name, author, summary, or description matching xxx Open terminal run pod setup then run rm -rf ~/Library/Caches/Cocoapods then pod search {anything} and it will work 来源: https://stackoverflow.com/questions/40581352/unable-to-find-a-pod-with-name-author-summary-or-description-matching-xxx