phonertc icon indicating copy to clipboard operation
phonertc copied to clipboard

Update to Swift 3

Open Batzmand opened this issue 8 years ago • 15 comments

Hey

Does anybody made the update to Swift 3 code ??

Batzmand avatar Sep 28 '16 08:09 Batzmand

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

Hyra avatar Sep 29 '16 10:09 Hyra

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

ethanzzx avatar Oct 04 '16 06:10 ethanzzx

https://github.com/alongubkin/phonertc/issues/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?

shamun avatar Oct 13 '16 21:10 shamun

same problem +1

pengkobe avatar Oct 25 '16 04:10 pengkobe

any help on this issue

mohamedsalehamin avatar Jan 04 '17 02:01 mohamedsalehamin

Yes any solutions would be much appreciated

danwaltzer avatar Jan 22 '17 18:01 danwaltzer

+1

gotoAndBliss avatar Feb 01 '17 17:02 gotoAndBliss

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/

Berdikhan avatar Feb 13 '17 08:02 Berdikhan

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

landycu13 avatar Feb 13 '17 22:02 landycu13

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

Berdikhan avatar Feb 14 '17 03:02 Berdikhan

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

landycu13 avatar Feb 14 '17 22:02 landycu13

+1

vishal41190 avatar Jun 01 '17 00:06 vishal41190

+1

ferassaqqa avatar Jul 07 '17 11:07 ferassaqqa

Berdikhan's solution is not working for me :(

De-Lac avatar Aug 29 '17 13:08 De-Lac

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

pmani86 avatar Oct 15 '18 11:10 pmani86