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

Update to Swift 3 #216

Open
Batzmand opened this issue Sep 28, 2016 · 15 comments
Open

Update to Swift 3 #216

Batzmand opened this issue Sep 28, 2016 · 15 comments

Comments

@Batzmand
Copy link

Batzmand commented Sep 28, 2016

Hey

Does anybody made the update to Swift 3 code ??

@Hyra
Copy link

Hyra commented Sep 29, 2016

I tried, but it lead to errors and more errors. Haven't gotten around to figuring it out.

@ethanzzx
Copy link

ethanzzx commented Oct 4, 2016

Does anyone figure out how to update this to Swift 3?It almost drives me crazy.

@shamun
Copy link

shamun commented Oct 13, 2016

#219

  • I also tried but its more error
  • even now with stable code i have 2 error and its not yet working

Can anyone please check what is causing it?

@pengkobe
Copy link

same problem +1

@mohamedsalehamin
Copy link

any help on this issue

@danwaltzer
Copy link

Yes any solutions would be much appreciated

@gotoAndBliss
Copy link

+1

@Berdikhan
Copy link

Hello everyone,

I found a way to use this plugin with latest SDK without fixing or converting any code, hope it helps you guys.

Here is a link,
http://radex.io/xcode7-xcode8/

@landycu13
Copy link

Hello Berdikhan
Could you compile the plugin phonertc in xcode 8 (switf3)? ... Brother ... I have stopped an app that I have not been able to launch in ios ... in android runs well but I can not compile in swift 3 or swift 2.3

@Berdikhan
Copy link

Berdikhan commented Feb 14, 2017

Yes, I was able to compile,

Here is what I did:

  1. Download Xcode 7.3.1 from here. (Note. do not replace existing Xcode 8, rename downloaded Xcode 7.3.1). Make sure that phonertc can compile in Xcode 7.3.1 before proceeding to the next step.
  2. Open your project (*.xcodeproj) in Xcode 7.3.1.
  3. Go to project settings, open the Build settings tab, and click the “+” to add a User-Defined Setting:
    “SWIFT_VERSION” = “2.3”.
    “PROVISIONING_PROFILE_SPECIFIER” = “ABCDEFGHIJ/“.
    Be sure to replace “ABCDEFGHIJ” with your Team ID (you can find it in Apple Developer Portal), and keep the forward slash at the end.
  4. Go through all of your .xib and .storyboard files, open the right sidebar, go to the first (File inspector) tab, and find the “Opens in” setting.
    It will most likely say “Default (7.0)”. Change it to “Xcode 7.0”. This will ensure that even if you touch the file in Xcode 8, it will only make changes that are backwards-compatible with Xcode 7.
  5. Make sure that your project and all its targets have the “Base SDK” build setting set to “Latest iOS”. (This will almost surely be true, but worth double-checking.) This way, Xcode 7 will compile for iOS 9, but you can open the same project in Xcode 8 and work on iOS 10 features.
  6. Alright, it’s time: open the project with Xcode 8. The first time you do so, you will be bombarded with a lot of requests.

Xcode will urge you to upgrade to the new Swift. Decline.

Xcode will also suggest to update the project to “recommended settings”. Ignore this as well.

Hope it helps

@landycu13
Copy link

hi Berdikhan
Thanks a lot for your answer .. i going to test it ...and i will write my comments very soon about it.

@vishal41190
Copy link

+1

1 similar comment
@ferassaqqa
Copy link

+1

@De-Lac
Copy link
Contributor

De-Lac commented Aug 29, 2017

Berdikhan's solution is not working for me :(

@pmani86
Copy link

pmani86 commented Oct 15, 2018

can i get Xcode project file (platform\ios) and i could not able to find platform folder

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