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

Unable to build a project with Swift4 #695

Open
benoitvb opened this issue Mar 7, 2018 · 6 comments
Open

Unable to build a project with Swift4 #695

benoitvb opened this issue Mar 7, 2018 · 6 comments

Comments

@benoitvb
Copy link

benoitvb commented Mar 7, 2018

There is a lot of warning and errors when trying to build with xCode 9.2.
Do you plan to release a new version ?

I'm a bit disappointed as I was really interested by the library...

@mainvolume
Copy link

I believe there is a Swift4 compilable version on C4´s Slack channel.

@benoitvb
Copy link
Author

benoitvb commented Mar 8, 2018

Thanks @mainvolume
I downloaded the last release here https://github.com/C4Labs/C4iOS/releases/tag/3.0.0
I followed the “Jet Li” way to install it http://www.c4ios.com/install/

xCode is throwing an error Target 'C4-tvOS' of project 'C4' was rejected as an implicit dependency for 'C4.framework' because it doesn't contain platform 'iphonesimulator' in its supported platforms 'appletvos, appletvsimulator'

I selected the “C4-iOS” scheme and built for iPhone8 simulator as a destination.
Not sure what I’m doing wrong...

@mainvolume
Copy link

Hi Benoitvb.

I can upload it to my repo and send you the Swift 4 compatible version link this evening when getting home if you wish.

@benoitvb
Copy link
Author

benoitvb commented Mar 8, 2018

Thank you !
Actually, I've found a way to build for swift 3 in xCode 9 so I can use the version from the C4 installer.
The solution was to set the Swift Language version to 3.2 in Build Settings.

I’m just started to learn Swift so it may not be a problem at all to not using the last version...

@mainvolume
Copy link

Great!
it´s possible to mix and match swift versions in the newer Xcode versions.

@traviskirton
Copy link
Collaborator

Awesome! Great work guys. Thanks @mainvolume for helping out. Thanks @benoitvb for hammering through the issue.

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

3 participants