songz / cordova-plugin-opentok

Cordova Plugin for OpenTok - add webrtc video to your iOS or Android App
Other
162 stars 270 forks source link

Cannot build for arm64 architecture #122

Closed fredfortier closed 9 years ago

fredfortier commented 10 years ago

This is a must now to submit to the Apple app store.

screenshot_2096

Juanjojara commented 9 years ago

Does someone managed to fix this?

laurilehmijoki commented 9 years ago

I'm experiencing the same problem. Any tips on how to work around this?

geoffreybauduin commented 9 years ago

I'm not sure @songz 's got time to work on this plugin since december... Maybe @aullman can be able to help you on this one.

aullman commented 9 years ago

The OpenTok iOS team will need to build a 64-bit version of the SDK which I'm told is coming.

aullman commented 9 years ago

arm64 support was released today https://tokbox.com/opentok/libraries/client/ios/release-notes.html

Anyone want to volunteer to get it into the Cordova plugin?

laurilehmijoki commented 9 years ago

I'm working on adding the iOS SDK v2.4 into this Cordova plugin.

However, I'm unable to push commit because the Opentok binary file is too large:

$ git push
Counting objects: 34, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (16/16), done.
Writing objects: 100% (16/16), 56.19 MiB | 2.42 MiB/s, done.
Total 16 (delta 10), reused 0 (delta 0)
remote: error: GH001: Large files detected.
remote: error: Trace: fde4887140ad56bce4ee54ab3e9af855
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File src/ios/Opentok.framework/Versions/A/Opentok is 174.89 MB; this exceeds GitHub's file size limit of 100 MB
To git@github.com:laurilehmijoki/cordova-plugin-opentok.git
 ! [remote rejected] arm64-support -> arm64-support (pre-receive hook declined)
error: failed to push some refs to 'git@github.com:laurilehmijoki/cordova-plugin-opentok.git'

GitHub says that If you push a file larger than 100MB to GitHub, Git will reject the push and tell you which file is too large.

Any thoughts on how we could work around this problem?

aullman commented 9 years ago

Hm, good question. Perhaps we need a script or the Grunt build can download the SDK.

laurilehmijoki commented 9 years ago

This is what a GitHub support person replied to me:

HI Lauri,

Sorry for the trouble. Repositories on GitHub.com have a hard limit of 2G per repo and 100MB per file. We've put the file size limit in place for a couple of reasons. Large files tend to slow down Git operations, especially large binary files that aren't easily compressed or diffed. They also cause speed and connection issues for other repositories on the same server.

Git wasn't built with binary files in mind—which is usually the cause of large repositories. We have more than 6 million people using github.com, and sharing its resources. Large repositories don't scale well with our current infrastructure, and cause problems with our servers.

We are working to remove that limitation, although I can't promise when we'll be able to allow larger repositories like this, that can grow a lot bigger without creating infrastructure problems.

In the meantime you may want to check out this article about dealing with large files on GitHub.com:

https://help.github.com/articles/working-with-large-files

It seems that @aullman is right: we need an installer script that downloads and installs the iOS SDK.

aullman commented 9 years ago

Yeah, it probably makes sense to have that anyway, aside from the file size limit...

nayemmajhar commented 9 years ago

Hi, I am facing same problem on iOS and i want contribute to develope new update of OpenTok cordova plugin. Anyone here help me to understand current plugins??

Developing somethings together, it will be speed up the project. @songz @aullman @laurilehmijoki

aullman commented 9 years ago

I think I've fixed this issue but unfortunately I don't have permissions to merge. In the meantime you can install the plugin from my repo manually using:

$ cordova plugin remove com.tokbox.cordova.opentok
$ cordova plugin add https://github.com/aullman/cordova-plugin-opentok#64-bit-support
aullman commented 9 years ago

This was fixed with https://github.com/songz/cordova-plugin-opentok/pull/143

suniliphone commented 8 years ago

Hello,

Can any one provide me libfontconfig.a with arm64 enabled.

Or Tell me the process how to achieve that.