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

Swift 2 is here! #70

Merged
merged 3 commits into from
Oct 4, 2015
Merged

Swift 2 is here! #70

merged 3 commits into from
Oct 4, 2015

Conversation

saghul
Copy link
Collaborator

@saghul saghul commented Sep 17, 2015

Ahoi!

Thanks for making this plugin available! ❤️

Swift 2.0 was released yesterday as part of Xcode 7.0, so it's time to upgrade! With the attached patches I could compile the iOSAppRTC example using Xcode 7 and deploy it to an iPad running iOS 9.

IMPORTANT NOTE: As of right now Apple requires applications to include Bitcode, but it has to be disabled for now since the bundled libwebrtc was built without it. I left a note about this on the documentation.

@saghul
Copy link
Collaborator Author

saghul commented Sep 17, 2015

/cc @ibc

@ibc
Copy link
Collaborator

ibc commented Sep 17, 2015

Wow, amazing!

Let me please merge it tomorrow (must update Xcode and so on).

@jfrux
Copy link

jfrux commented Sep 18, 2015

Very anxious! Thank you @saghul for spearheading this initiative.
And thank you as always @ibc for all of your hard work and commitment to making all of this possible.

@saghul saghul mentioned this pull request Sep 18, 2015
@windht
Copy link

windht commented Sep 18, 2015

Thank you @saghul !

@saghul
Copy link
Collaborator Author

saghul commented Sep 18, 2015

Updated hook to do the bitcode dance for us. (I guess iOSRTCApp would need updating after this lands)

@jfrux
Copy link

jfrux commented Sep 18, 2015

Forgive my ignorance to this process but does updating this to Swift 2.0 cause all people installing the app to be forced to install iOS 9 before they can use my app?

@saghul
Copy link
Collaborator Author

saghul commented Sep 18, 2015

@joshuairl I don't think so. I happen to have iOS 9 on my test device, but the deployment target was still set to 8.2. Alas, I have no iOS 8 device to confirm this.

@windht
Copy link

windht commented Sep 18, 2015

@joshuairl
I have made a dirty version to get swift 2 work a month ago because I updated to el capitan and had to use xcode 7 beta, but my iphone remains ios 8.4 and everything works pretty well. So no worries.

@jfrux
Copy link

jfrux commented Sep 18, 2015

@windht @saghul could one of you help me understand this... so I decided to try the swift-2 branch of @saghul's PR repo and so I removed iosrtc plugin from cordova.

and did a cordova plugin add https://github.com/saghul/cordova-plugin-iosrtc#swift-2 to install it.
and it seemed to install correctly...

I'm now getting:
ERROR: Plugin 'iosrtcPlugin' not found, or is not a CDVPlugin. Check your plugin mapping in config.xml.

@mikeg0184
Copy link

@joshuairl I don't know if this will help...but open up the project in xCode and expand the plugins folder in the project navigator. Select 'iosrtcPlugin.swfit' and make sure that the checkbox under Target Membership (in the right window pane) is checked off.

I often find these unchecked when removing/adding plugins without blowing away the entire platform.

@saghul
Copy link
Collaborator Author

saghul commented Sep 18, 2015

I fixed and force pushed a bit earlier today. Can you delete all the
downloaded files and retry?

On Friday, September 18, 2015, Joshua Rountree notifications@github.com
wrote:

@windht https://github.com/windht @saghul https://github.com/saghul
could one of you help me understand this... so I decided to try the swift-2
branch of @saghul https://github.com/saghul's PR repo and so I removed
iosrtc plugin from cordova.

and did a cordova plugin add
https://github.com/saghul/cordova-plugin-iosrtc#swift-2 to install it.
and it seemed to install correctly...

I'm now getting:
ERROR: Plugin 'iosrtcPlugin' not found, or is not a CDVPlugin. Check your
plugin mapping in config.xml.


Reply to this email directly or view it on GitHub
#70 (comment)
.

/Saúl
bettercallsaghul.com

@jfrux
Copy link

jfrux commented Sep 18, 2015

Seems to be working okay as for now! :)

@jfrux
Copy link

jfrux commented Sep 19, 2015

Somethings not quite right.
Thinking the select audio output function isn't working right?

@saghul
Copy link
Collaborator Author

saghul commented Sep 19, 2015

@joshuairl I haven't tried that. Can you give some more details on what's not going right? Any log lines?

@jfrux
Copy link

jfrux commented Sep 19, 2015

Honestly haven't even checked logs because my damn device updated to 9.1 and can't get Xcode to install haha.

However I'm sure it's unrelated but my initial stream won't record on MCU. Again, I'm sure it's unrelated but who knows haha.

I'm pretty new to webrtc.

@jfrux
Copy link

jfrux commented Sep 19, 2015

Okay, figured out my MCU issue... obviously that wasn't even related.
I'm about to hook up another iOS device that is running iOS 9.0 to check logs.

I continue to have seemingly intermittent issues with where one side cannot hear anything from other side... although the sound is transmitting because my MCU is capturing it so I know the transmitting is working... but thinking either the "audio output device" isn't firing or something...

@jfrux
Copy link

jfrux commented Sep 19, 2015

Going to try to make sure I have pulled the latest code from your repo to ensure I'm not running outdated stuff.

@ibc
Copy link
Collaborator

ibc commented Sep 19, 2015

@joshuairl this plugin uses the Google libwebrtc library as it is. It does not handle audio/video by itself in any way. If you experiment issues with your MCU please check the same environment with your WebRTC browser application, but please let's not comment these issues in this ticket about migrating to Swift 2.0.

@ibc ibc mentioned this pull request Sep 21, 2015
@jfrux
Copy link

jfrux commented Sep 25, 2015

So some how I was able to continue running the old Swift code and compile just fine now... I just have to hit "Cancel" when it asks me to convert the code... before it would go a head and screw up all of the code references and wouldn't let me compile it.

But now I am experiencing a couple of intermittent peer connections not displaying correctly.
Still trying to get my iPhone back to 9.0 to run it live on the device. Grrr :p

@ibc Sorry about that, I recognize that it isn't an iosrtc issue. It turns out that it was something I did (of course!) :)

I just know how important it is to always include details into issues that may not always present obvious side-effects. Hoping to just make the project as solid as possible!

Thanks for all you guys do.

@mikeg0184
Copy link

@ibc any plans on merging this into master soon?

@saghul
Copy link
Collaborator Author

saghul commented Sep 25, 2015

@mgerstenblatt Hey, @ibc is afk for a few days. If this PR working fine for you?

@jfrux
Copy link

jfrux commented Sep 25, 2015

Yeah I'm just having a lot of trouble getting cordova.plugins.iosrtc.selectAudioOutput('speaker') to work.
I feel like it was working before but who knows.

Anybody else having any issues?

@ibc
Copy link
Collaborator

ibc commented Sep 27, 2015

@joshuairl selectAudioOutput() did work before, but remember it only works if you call it once a WebRTC session is started. Anyhow, if you detect it fails under those conditions, please open a new issue describing it.

@mborejdo mborejdo mentioned this pull request Sep 28, 2015
@psirenny
Copy link

psirenny commented Oct 3, 2015

I get these errors when I try to build. I'm running Xcode 7.1 on El Capitan. I am running the swift hook in the extras folder.

@saghul
Copy link
Collaborator Author

saghul commented Oct 3, 2015

@psirenny Looks like you haven't applied the changes from this PR. Those .value become .rawValue, for example.

@ibc
Copy link
Collaborator

ibc commented Oct 4, 2015

@saghul I'm back. I've created a new branch "swift1.2" to hold the current Swift 1.2 based plugin, and will merge your PR on master right now if you confirm me that's ready :)

ibc added a commit that referenced this pull request Oct 4, 2015
@ibc ibc merged commit a5690e4 into cordova-rtc:master Oct 4, 2015
@ibc
Copy link
Collaborator

ibc commented Oct 4, 2015

Guys, cordova-plugin-iosrtc 2.0.0 is here. It requires Swift 2.0.0 so thanks a lot to @saghul for the PR 🍰

@saghul
Copy link
Collaborator Author

saghul commented Oct 4, 2015

\o/
On Oct 4, 2015 15:42, "Iñaki Baz Castillo" notifications@github.com wrote:

Guys, cordova-plugin-iosrtc 2.0.0 is here. It requires Swift 2.0.0 so
thanks a lot to @saghul https://github.com/saghul for the PR [image:
🍰]


Reply to this email directly or view it on GitHub
#70 (comment)
.

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

Successfully merging this pull request may close these issues.

6 participants