I am using Swift 4.2 and Xcode 10.1 And while importing RxAlamofire to my project I am getting an error "Could not build Objective-C module 'RxAlamofire' ".
I have tried to clean the build folder and build it again. And also delete the Derived data folder and build again. But still getting the same error. Any help appreciated.
Here is a screenshot of the error I'm getting:
Podfile
platform :ios, '9.0'
use_frameworks!
target 'RiderUser' do
pod "FlagPhoneNumber"
pod "KeychainAccess"
pod "SwiftyJSON"
pod "RxAlamofire"
pod "RxSwift"
end
I keep getting this error while following these instructions to use WeScan. (https://schiavo.me/2019/scanning-documents-old/)
A few things that I have tried.
Made sure its added in frameworks
Added "%(SRCROOT)/Pods/" to my Header Search Paths
Run pod install with the according Podfile (see code below)
Used the .xcworkspace file
Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '12.4'
use_frameworks!
target 'ScannerApp' do
pod 'WeScan', '~> 1.0.0'
end
Even when I downloaded the example git project (https://github.com/justJS/blog-example-code/tree/master/2019-02-24-ScanningDocumentsOld) I still get the same error. Is it my CocoaPods maybe?
edit:
I also get a black screen when I am in Main.storyboard. That is also something new?
I'm trying to fix it for a couple of hours, but still without success.
I've got an iOS project from a company that needs some updates on that app. It was written in swift 2.3
My XCode version is 8.3.3 - when I opened the project, I got a message I have to convert the code to Swift 3
As a first thing, I updated pods dependencies
pod deintegrate
pod install
Here is my podfile if there's anybody interested to know
# Uncomment this line to define a global platform for your project
platform :ios, '10.2' #there was '8' when I got the code
# Uncomment this line if you're using Swift
use_frameworks!
workspace 'NaKoleIPesky'
target 'NaKoleIPesky' do
pod 'Alamofire'
pod 'HanekeSwift'
pod 'SwiftyJSON'
pod 'GoogleMaps'
pod 'SwiftLoader'
pod 'GooglePlacesAutocomplete', git: 'https://github.com/watsonbox/ios_google_places_autocomplete'
pod 'FRHyperLabel'
pod 'Google/Analytics'
pod 'GoogleConversionTracking'
end
I tried to convert the code (both pods packages and our code) to Swift3 via the Convert tool, but it returned with the error "Convert: Failed", popping up about 1700 buildtime errors. This is the list of files that tried to converts.
I press okay, but there's still a lot of compiler errors. Like these
or this one
probably wrongly converted, the original code was
self.handleResponse(data, response: response as? NSHTTPURLResponse, error: error, completion: completion)
Is the convert tool working bad? What can I do in this case? I don't want to rewrite all the code and fix 680 errors before I can compile something that was working before. I tried to Google a lot about this problem but no useful solutions were found.
I have installed a pod in podfile:
pod 'TealiumIOS', '~> 5.0'
But an error occurs in runtime.
"dyld: Library not loaded: #rpath/TealiumIOS.framework/TealiumIOS
Referenced from: ...
Reason: image not found"
I can't find the solution in any other stackoverflow posts. I'm running XCode 7.3 and I tried simulator and a real device. Pods version 1.0.1. The crash persists.
Thank you.
I had a similar problem, so probably my solution is going to be useful for you as well.
Looks to be that Tealium pod was created just as a framework option and you are using cocoapods with the static library option. Basically you have to add the use_frameworks! option in the podfile.
platform :ios, 8.1
use_frameworks!
target :YourTarget
pod 'TealiumIOS'
end
Enjoy :)
The Terminal Error I am receiving after running pod install is:
I realize that ReactiveCocoa's cocoapod is entirely in SWIFT and that I need to Bridge the header files, but my attempts have been far from successful.
I did find this response from one of TeamTreehouse's Staff:
"The SimpleAuth library has it's own set of dependencies one of which is ReactiveCocoa. ReactiveCocoa was recently rewritten completely in Swift so that's the Swift code that's getting added to your project. Unfortunately there are 2 versions of ReactiveCocoa out there, written in Swift 1.2 and Swift 2.0.
SimpleAuth is currently automatically pulling the 1.2 version of ReactiveCocoa.
Swift 1.2 can only be run in Xcode 6.1 and not in Xcode 7 (which requires Swift 2).
So if you are using Xcode 7, then you're pulling in the Swift 1.2 version by default and this is causing all the Swift errors.
Also, you have to do some cleanup work to get Swift frameworks to run in a mixed Objective-C/Swift project which includes adding a bridging header and stuff."
.
^^ Explains my Problem ^^
Thanks in advance!
Edit
After adding use_frameworks! to my Podfile, I was receiving errors like:
The error message says to add the line use_frameworks! to your file called Podfile.
Add it below the first line that should probably say platform :ios, 'x.0'.
You need to use ReactiveCocoa 4.0, which is target Swift 2.0, yet still under alpha version.
If you want to have a try, check this out.
use_frameworks!
target 'YOUR_TARGET' do
pod 'ReactiveCocoa', '~> 4.0.0-alpha'
end
After attempting use_frameworks! within my pod file, I was still experiencing errors due to ReactiveCocoa and the .swift files (even after auto-correcting the errors that Xcode attempted to fix for me).
Within my Podfile I was able to resolve both sets of errors I was experiencing:
1. When including use_frameworks! in the Podfile
2. Also when running my original pod install in hopes of adding the Parse cocoapod
Final code in Podfile
pod 'ReactiveCocoa', '2.4.7'
pod 'SimpleAuth/Instagram', '0.3.6'
pod 'SSKeychain'
pod 'Parse'
You can actually request the latest version of the dependencies. Your Podfile should look like this:
platform :ios, "9.0"
use_frameworks!
target 'MyAppNameHere' do
end
pod 'Box', :head
pod 'Result', :head
pod 'SimpleAuth/Instagram'
Then peform a pod update and in your project, Product > Clean and Product > Build and will work again.