Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RealmSwift Module compiled with Swift 3.1 cannot be imported in Swift 3.2 in iOS 11 beta 5 #5229

Closed
Sudhi55 opened this issue Aug 11, 2017 · 6 comments
Labels

Comments

@Sudhi55
Copy link

Sudhi55 commented Aug 11, 2017

No description provided.

@bdash
Copy link
Contributor

bdash commented Aug 11, 2017

We don't publish prebuilt binary frameworks built with prerelease versions of Xcode as there's no guarantee of compatibility between beta versions. Prebuilt binary frameworks for Swift 3.2 will be available after Xcode 9 is out of beta.

For now, the recommended means of using Realm Swift with beta versions of Xcode 9 is to build Realm from source. CocoaPods and Carthage are the easiest ways to do this as they either always build from source (CocoaPods) or will automatically fall back to building from source if the prebuilt binary is from a different Swift version (Carthage).

@kishikawakatsumi
Copy link
Contributor

It looks to me as if we've answered your question. I'm going to close this issue. Please feel absolutely free to open a new one if you have more questions.

@Sudhi55
Copy link
Author

Sudhi55 commented Aug 21, 2017

Yes, we were able to get RealmSwift working on iOS 11 beta 6 with Xcode 9 beta 5 (latest Aug 21, 2017). Here's the steps for users still having issues:

  • Move Xcode-beta.app to Applications folder
  • Point command line tools to Xcode 9.0 by using below command or change it directly in Xcode preference
    sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer
  • Delete cartfile.resolved and carthage folders
  • Do carthage update by using the command - carthage update --platform iOS --no-use-binaries

@bogdan-razvan
Copy link

Is there any change to get RealmSwift to work with Xcode9 Beta and Swift 4 if I'm using Cocoapods, and not Carthage?

@jannejava
Copy link

jannejava commented Sep 4, 2017

+1, I have the same question.

@bdash
Copy link
Contributor

bdash commented Sep 4, 2017

Using Realm Swift with Xcode 9 beta and CocoaPods should only require that you've configured CocoaPods to use the appropriate Swift version. If you're hitting a specific problem when doing this, please file a new issue and provide the details requested in the issue template.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants