Does anyone know where to get RxSwift Pod for xcode 10 and swift 4.2? - xcode

I tried a couple of variations in podfile to no avail...I assumed it was pod 'RxSwft', '-> 4.2' but get an error that is less than descriptive.

This works fine for me:
maybe you have another problem, can you add the error description?
And also I would recommend to always follow the page documentation:
there it still says to use 4.0, and even when i used in my podfile 4.0 it still installed (4.2.0) and i use the Xcode 10 beta, working fine.

Related

Issue After Installing New Pods Into Project

I'm new to coding, so anything is appreciated! I created a project and realized I needed to install Alamofire into my project, instead of AFNetworking. Once I did this and uninstalled AFNetworking, I got dozens of errors. I read online that using the old Swift version and having a newer form of Alamofire can cause issues. So I needed to convert my code to Swift 3 by clicking edit, convert to latex swift context, etc. Once I did this, I got more issues as well. I have no clue what's all of a sudden wrong and how to fix this. What do I do? Attached are a list of errors. Thanks!
You need to update your code to Swift3. Not the Framework's code. Also you can check Framework's branches to find out if there is a Swift branch matching your version:
Alamofire for Swift3 = pod 'Alamofire', '~> 4.0'
Alamofire for Swift2 = pod 'Alamofire', '~> 3.5'

Error in conversion to swift 3 syntax for an existing cocoapods integrated project

I've recently upgraded to xcode 8 and did a conversion for my xcode project. While every other swift files checks out fine, there seems to be issues with this particular swift file.
I suspect it could be a result of cocoapods not being updated and thus I did a repo update to the latest pre version before doing a pod install on the project again but still to no avail.
Hmmm ok I found a way to fix this, apparently just going to product>clean will solve most of the problems. This is for anyone out there converting to swift 3. Now on to solve some other problems...

Reinstall cocoa pods mirror to make it work

Several days earlier I met a strange issue,when imported the library of Alamofire and then let enum conform to protocol .The error shows enum cannot conform to protocol .I thought the issue was from cocoa pods ,so I uninstalled cocoa pods and then wanna install again.
I executed the order:"gem install cocoapods".But it displayed the error,the error as follow,I hope get everyone's help to solve it completely.I'm not skilled in the field of cocoa pods.Thank you so much..
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://ruby.taobao.org - no such name (https://ruby.taobao.org/specs.4.8.gz)
Sorry to disturb everyone......But I really desire to get your hand to solve it.
Yeah I did it via command order
pod install cocoapods
Sometimes you need to reinstall it and then all will be solved.

Swift 2.0 Xcode 7.1 Google Maps SDK

While Xcode was version 7.0 I had an app that worked perfectly well. I made the cocoapod file, set it up and everything ran perfect.
I just updated to 7.1 and now all I get are 21 errors that say "/Users/Johnathan/Desktop/Parse Default/GoogleMaps/Google Maps/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h:14:9: Include of non-modular header inside framework module 'GoogleMaps'"
I'm not sure what to do or how to update/edit this. I am not very familiar with cocoapods. Please help. I can't get my app to run. Thanks.
And if it helps all I did was update Xcode and it went from working to not working.
See this thread below for a solution as it seems to be most up to date.
In essence, you will need to add a Bridge Header (see comment 7)
Here it is: https://code.google.com/p/gmaps-api-issues/issues/detail?id=8524&can=1&q=Could%20not%20build%20Objective-C%20module&colspec=ID%20Type%20Status%20Introduced%20Fixed%20Summary%20Stars%20ApiType%20Internal

Alamofire Swift 2 - cannot submit for beta testing (Xcode 7 GM)

I have followed the instructions on installing the swift2 branch of Alamofire with cocoa pods. The app works well in the simulator, however, when I archive it for submission with Xcode 7 GM I receive an email with an error:
"The bundle contains an invalid implementation of Swift. The app may have been built or signed with non-compliant or pre-release tools"
This issue definitely relates to the framework as without it I am able to submit for beta testing with the same version of Xcode. I have tried turning bit code OFF in the build settings for Alamofire but it does not help.
Does anyone know how to fix this?
My podfile links only against Alamofire framework:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift-2.0'
One of the things that I found rather strange is that when I try to submit an archive I have the following screen:
Maybe this can be helpful in identifying the issue. The extra two targets are notification centre widgets. Disabling them doesn't resolve the issue. And without Alamofire I am able to submit for beta testing with both widgets attached.
Update
For those who are suggesting that "Swift 2.0 is in beta so you cannot submit" I want to clarify once more - I am trying to submit for beta testing. And YES, it is possible!
As I have indicated, I am able to submit for beta testing if I remove Alamofire and my own app is written in Swift 2.0. And if someone still thinks that "it is not possible" here is some info for you. Please read it first before posting comments or down voting question.
Update 2
This issue is still there with Xcode 7 GM...
OK, this issue is now fixed. I have tried the 2.0.1 version of Alamofire and I am able to submit with Xcode 7 GM and Bit Code turned ON for both Alamofire and my app.

Resources