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

demo can not run #2227

Closed
L-Jovi opened this issue Mar 6, 2017 · 16 comments
Closed

demo can not run #2227

L-Jovi opened this issue Mar 6, 2017 · 16 comments
Assignees

Comments

@L-Jovi
Copy link

L-Jovi commented Mar 6, 2017

I follow this issue and finish carthage step, but I also encounter below error as image show.

image

how should I fix it?

thanks for your time.

@liuxuan30
Copy link
Member

liuxuan30 commented Mar 7, 2017

just read README, install Realm, and recompile

@L-Jovi
Copy link
Author

L-Jovi commented Mar 7, 2017

@liuxuan30 thanks for your reply, I already follow README,

but I also get not found issue after carthage checkout,

maybe I did something wrong, would you mind provide some suggestion for me?

thanks for your time.

@liuxuan30
Copy link
Member

it can't be... you sure you downloaded and installed Realm? Can you see ChartsRealm files?

@L-Jovi
Copy link
Author

L-Jovi commented Mar 10, 2017

@liuxuan30 thanks for your patience,

I ensure execute carthage checkout and download Realm framework, and I add it in my project Embedded Binaries

image

I think I finish all step from README, and I don't know how to fix the dependency of import RealmSwift

image

@liuxuan30
Copy link
Member

hmm.. Do you install Realm Swift? I am not sure either. However I used to run carthage bootstrap to install. Never tried check out. But it should install RealmSwift for you..

@L-Jovi
Copy link
Author

L-Jovi commented Mar 13, 2017

@liuxuan30 thanks again for your reply :)

I ensure that RealmSwift not exist after carthage checkout, I just see Realm framework, and I try your idea carthage bootstrap which takes a long time to finish download, and I see RealmSwift framework!

image

then I drag them to Embedded Binaries without copy if needed

image

I clean and compile project again, but also encounter 2 not found error like below image show.

image

I'm not ensure that I'm on right workflow to build, but how should I fix it?

regards.

@liuxuan30
Copy link
Member

That's weird, you have too many Realm framework
That's what mine looks like:
image

However in project settings, I just have ChartsRealm:
image

I suggest you just clean it up and start it over again.

@elanpang
Copy link

elanpang commented Mar 15, 2017

I think the issue because "Incompatible Swift version - framework was built with 3.0.1 and the local version is 3.0.2.", so the build script can't find the swift file in the build folder of carthage.

How to fix it for me ?

I opened the Cartfile and Cartfile.resolved files, change 2.1.1 to 2.4.4 , then carthage checkout again, it works for me.

tip:
ReaIm 2.4.4 at 17.03.15

@liuxuan30
Copy link
Member

liuxuan30 commented Mar 16, 2017

@petester42 do you think we could delete Cartfile.resolved to let Carthage generate it up to date? Seeing Cartfile.private, Cartfile etc.

@pmairoldi
Copy link
Collaborator

That's an option. I'll look into it when I have time.

@pmairoldi pmairoldi reopened this Mar 16, 2017
@pmairoldi pmairoldi self-assigned this Mar 16, 2017
@AdrianBinDC
Copy link

@L-Jovi I've encountered the same problem. I'm just going to install the CocoaPod and look at the code in the demo project. I wish it were easier to run the demo project without having to jump through a bunch of installation hoops. Once I installed Carthage, I ran into a bunch of Realm warnings.

@L-Jovi
Copy link
Author

L-Jovi commented Mar 22, 2017

@AdrianBinDC Carthage is a bit different with CocoaPod, the latter more automatic.

if you encounter the same issue, I suggest that you could notice the solution from @elanpang , although I also failed :(

@pmairoldi
Copy link
Collaborator

seems like ignoring the cartfile.resolved is not a great idea. #2199 should fix demo issues. if not then clean the project and try again

@lidaren
Copy link

lidaren commented Mar 27, 2017

hi, I download the new project, but demo can not run...“No such module 'RealmSwift'”.what's problem?

@liuxuan30
Copy link
Member

@lidaren read README

@lidaren
Copy link

lidaren commented Mar 28, 2017

@liuxuan30 thanks, Due to the error:Incompatible Swift version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants