Instamojo Integration Issue - swift4

I have integrated Instamojo in my project and working on xcode 10, swift version 4. I am following Instamojo Documentation site for integration and facing below error.
/Volumes/.../Instamojo
Integration/Pods/InstaMojoiOS/InstaMojoiOS-Release-iphoneuniversal/InstaMojoiOS.framework/InstaMojoiOS
compiled with older version of Swift language (4.0) than previous
files (unknown ABI version 0x06) file '/Volumes/.../Instamojo
Integration/Pods/InstaMojoiOS/InstaMojoiOS-Release-iphoneuniversal/InstaMojoiOS.framework/InstaMojoiOS'
for architecture x86_64.
Please help me in this. Waiting for positive response. Thanking you in advance.

Your instamojo podfile is older one. Update the newer version no of your podfile and reinstall it.

Related

Swift Package Manager gets stuck indefinitely upon adding new package [duplicate]

After updating Xcode to version 13.2 i can't build my project anymore. I have a strange error "Internal error: missingPackageDescriptionModule" related to my Workspace file.
It's definitely related to SPM because Xcode is not loading SPM packages also. I tried to "Reset package caches", "Resolve package caches" and also "Updating to latest package caches" but after all of these operating nothing happens. Deleting derived data, cleaning didn't help too...
I tried also to resolve packages from Terminal using xcodebuild -resolvePackageDependencies but I get error message:
--- xcodebuild: WARNING: The directory /Users/ptocicki/Developer/KFC/kfc-ios also contains the legacy project 'project.pbxproj' - ignoring it and using 'KFC.xcodeproj'.
xcodebuild: error: Could not resolve package dependencies:
Internal error: missingPackageDescriptionModule"
Apple is aware of the issue.
We're currently investigating this issue — thank you to those who have
filed bug reports so far. To workaround this issue, please re-download
Xcode 13.2 directly from the Downloads page.
https://developer.apple.com/forums/thread/696504?answerId=698142022#698142022
🎊 Fixed on v13.2.1 and you can download from here
Explaination
This bug is reported and the v13.2.1 AppStore version but As  Apple suggest here, you should download the Xcode manually from the developer center
Manual download of any Apple developer software
✅ The always working and preferred workaround!
Download directly from Apple:
Latest Release version or
Latest Beta version or
Any version you need and all other downloadable contents
Then extract and move it where you like. This has so many benefits compared to AppStore updates. (like the ability to resume download, not replacing the old one, not wasting hidden directories and etc.)
Note that you should use safari to download it.
⚠️ Important note for developers like me!
The page you’re looking for can’t be found.
If you The page you’re looking for can’t be found message, you may need to use a VPN if you are in a country that the US sanctioned like mine. Because Apple is blocking some IP address ranges.
If you’re using Swift packages either standalone or as dependencies in an Xcode project or workspace, the Mac App Store version of Xcode fails during package resolution with the error “Internal error: missingPackageDescriptionModule.” (86435800)
Workaround: Download Xcode 13.2 directly from the Apple Developer website.
I just got the issues late at night after Xcode updated on its own while I was working on my project, which was not a cool surprise. It appears to be affecting all dependencies. You are not alone in this it's affecting everyone. I did what they recommended and downloaded Xcode directly from the Apples developer site and it fixed all my issues super happy right now!!!!!!!
XCode was updated to 13.2.1 at 12/19 which fix the issue.
https://developer.apple.com/documentation/xcode-release-notes/xcode-13_2-release-notes
If you’re using Swift packages either standalone or as dependencies in an Xcode project or workspace, the Mac App Store version of Xcode fails during package resolution with the error “Internal error: missingPackageDescriptionModule.” (86435800)
Workaround: Download Xcode 13.2 directly from the Apple Developer website.
Seems local package still working. So there is a temporary solution: We can download the dependencies then add them to the project as local paclages.
Please update to Xcode 13.2.1.
If not, download Xcode 13.2 from the Apple Developer website.
Updating from Xcode 13.2 to 13.2.1 from App Store fixed the issue for me.

How can I use Realm with newly released versions of Xcode that include new versions of Swift?

I just updated to Xcode 9 last week, and I've been looking for a way to get around this error:
Module compiled with Swift 3.1 cannot be imported in Swift 4.0
Each time a new version of Xcode is released that includes a new version of Swift, I have to wait for the RealmSwift project to be updated in order to build and run my project. I am aware that this has to do with Swift's ABI stability, but I also see others who seem to know how to get around this until a compatible version of Realm comes out. Currently, I am running 2.8.0, which was the current release as of last night. My dependency manager of choice is Carthage, but similar questions usually involve CocoaPods, which does not help me very much.
Can anyone offer some clear instructions for unfamiliar ones like me so I can keep working on my project now and when future versions come out? Thank you.
When using beta versions of Xcode which there are not prebuilt binaries for you need to pass --no-use-binaries to carthage bootstrap so that Carthage builds all of the dependencies from source.

Cocoapods - Module Compiled with Swift 3.0 cannot be imported in Swift 3.0.1

Just updated to Xcode v8.1 and am trying to install a pod. However, once I import it, Xcode gives me an error saying Module Compiled with Swift 3.0 cannot be imported in Swift 3.0.1 and then a path to the module.
I have tried saying Use Legacy Swift Language Version however this does not solve the issue.
Any other ideas of what I can change to make this compile? I have a hard time believing a minor version change should cause this much trouble.
Thanks in advance for any help.
This happens almost every update. Try pod update in the terminal where the pods are located to get all your pods to the latest versions.
Just clean your project.
Select: Product -> Clean

Build errors in Keychain.swift when compiling in XCode, iOS development

Xcode version is 7.3.1
OSX 10.11.6
This link accurately describes the issues I'm having
https://github.com/marketplacer/keychain-swift/issues/37
Errors I'm getting make it clear that my system just isn't recognizing the Keychain.Swift file.
The above link suggests the file is in Swift 3.0, and I double checked that I am running Swift 2.2.
So I tried to install the older version of Keychain.Swift via cocoapods and it seems to update in my system, but I'm still experiencing the same build errors.
I placed "pod 'KeychainSwift', '~> 3.0'" inside the pod file in Xcode and ran "install pod" from terminal inside the project directory.
I tried shutting down Xcode and reopening, I tried running Product-> clean, but nothing seems to work.
The project is a work file that was pulled from github and seems to work on the original authors environment, but I have yet to successfully get my environment to work.
I appreciate any advice and suggestions. I am new to swift, cocoapods, and iOS development.
As i can see the current version of Keychain.Swift you are using is in Swift 3.0
It is giving you error of Date class which is introduced in Swift
3.0
Date Class Documentation Unfortunately Which is supported in ios 10+
Please follow the below steps to remove the previous version and switch to older version:
Remove this line "pod 'KeychainSwift', '~> 3.0'" from your pod and run install pod this will remove the current KeychainSwift pod.
Now add this line pod 'KeychainSwift', git: "https://github.com/marketplacer/keychain-swift.git", branch: "swift_2_3" Reference taken form this link this will install Swift 2.3 version of the file.
Enjoy Coading.
Turns out there are multiple libraries for utilizing the keychain. There is one called KeychainAccess and another one called Keychain-swift. One utilizes "import KeychainAccess" and the other "import KeychainSwift". I simply had the version for swift 3.0 when I'm using 2.2 (which we knew from the start, but still couldn't get it to work). The advice given by Harshal Bhavsar is accurate, but only if you are using "KeychainSwift". Otherwise, you want to roll back to an older version of "KeychainAccess" found here https://github.com/kishikawakatsumi/KeychainAccess/releases.

Native Force.com Rest App Template is not showing in New Project Wizard

I followed this link http://wiki.developerforce.com/page/Getting_Started_with_the_Mobile_SDK_for_iOS#Working_with_the_SDK
to as to integrate my iOS App with the SalesForce. Now while creating new project I can't se the Native Force.com Rest App Template in New Project Wizard, instead only Hybrid Force.com App template is been shown.
Help Appreciated.
I recently solved this problem by Updating to OS X 10.7.3 and doing a fresh install of XCode 4.3.1, then re-installing SalesForce. After the re-install, the REST template was right where it belonged!
Make sure you set the XCode directory so that SF knows where to put the files, otherwise the install will hang!
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
I hope you get it solved!
Salesforce Mobile SDK for iOS was updated to version 1.1 this past week. Among the fixes were updated instructions for installing the SDK on Xcode 4.3. The old install script doesn't work for the latest version of Xcode so getting the latest source code from Github might solve your problem.