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

Plugin not working on 64-bit architecture #4

Open
kant2002 opened this issue Jul 21, 2014 · 22 comments
Open

Plugin not working on 64-bit architecture #4

kant2002 opened this issue Jul 21, 2014 · 22 comments

Comments

@kant2002
Copy link

XCode complain that it ignores the WindowsAzureMessaging.framework since it does not have symbols for x86_64 platform.

@emtopping
Copy link

Hi, can you update the plugin for 64 bit support so it can be used on iOS8 and PhoneGap Build?

@kant2002
Copy link
Author

Essentially, I just recompile WindowsAzureMessaging.framework to support 64-bit arch.

@emtopping If you need this, you could install from my repo, until fix would be merged.

cordova plugin add https //github.com/kant2002/cordova-plugin-azure-notificationhub.git

@emtopping
Copy link

@kant2002 I appreciate the offer, Andrey. Unfortunately I'm using PhoneGap Build so I need srebnov to update it in PGB. I'm trying to setup my own environment in case the author has abandoned the project but having trouble updating my version of cordova in Visual Studio Tools for Apache Cordova from the default - but that's off-topic! ;)

@sgrebnov
Copy link
Owner

merged and thank you a lot for the effort - please let me know if it does not work.

@sgrebnov
Copy link
Owner

I believe that PG Build uses the following fork so this fix must be landed here to make it working
https://github.com/PhonegapProjects/cordova-plugin-azure-notificationhub

@emtopping
Copy link

@sgrebnov indeed it does - does that mean PG Build won't be updated? (Sorry I'm a bit of a newbie with this)?

@sgrebnov
Copy link
Owner

@PhonegapProjects hey guys, could you merge or cherry pick this fix to your fork?
#10

@emtopping
Copy link

Thanks, Sergey!

@mvanhalen
Copy link

Hi @sgrebnov ,

Can it be that the PhoneGap Build is using the old version still? Got a 64 bit error when compiling with a PhoneGap ios build. I did not specify a in the config file version so it should get the latest plugin version right?

Thanks

@emtopping
Copy link

@mvanhalen in the end I used the Azure javascript library not the plugin (in conjunction with pushplugin)....

@mvanhalen
Copy link

@emtopping That's another option indeed. But I would like to have a clean integration with notification hubs directly. This seems the best way to do it. But always good to have a fallback thanks.
I'll first try it out with Android.

@Lanayx
Copy link

Lanayx commented Apr 25, 2015

The issue is still open, I'm getting the error

Link: ld: warning: ignoring file Cordova370/Plugins/msopentech.azure.NotificationHub/WindowsAzureMessaging.framework/WindowsAzureMessaging, missing required architecture arm64 in file Cordova370/Plugins/msopentech.azure.NotificationHub/WindowsAzureMessaging.framework/WindowsAzureMessaging (3 slices)
Undefined symbols for architecture arm64:
"OBJC_CLASS$_SBNotificationHub", referenced from:
objc-class-ref in NotificationHub.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

UPDATE:

I've updated the WindowsAzureMessaging.framework from the official repository
https://github.com/Azure/azure-notificationhubs/blob/master/iOS/bin/WindowsAzureMessaging.framework.zip
Build worked, but when using test code, it just shuts down the app...

@svenrobin
Copy link

my build is faling with the zip you linked to: im getting the error: file is universal (4 slices) but does not contain a(n) armv7s slice:

@Lanayx
Copy link

Lanayx commented Apr 30, 2015

I've also come up with PushPlugin and Azure REST for notifications hub

@mvanhalen
Copy link

Hi @svenrobin and @Lanayx ,
I made a fork to this git especially for PhoneGap Build projects. It´s has the push notification integrated on the native side. The build is working for iOS8 64 as well. iOS and Android work.
https://github.com/mvanhalen/cordova-plugin-azure-notificationhub

Good luck

@svenrobin
Copy link

@mvanhalen Hey, Good fork but i still got the same error when trying to build it for my ipad: : file is universal (4 slices) but does not contain a(n) armv7s slice: Plugins/msopentech.azure.NotificationHub.Extended/WindowsAzureMessaging.framework/WindowsAzureMessaging file

@svenrobin
Copy link

do you have any idea in how i can fix this @mvanhalen ?

@mvanhalen
Copy link

Odd. I have used the latest version a couple of times now. Compiled without issues in PhoneGap Build. Even got a new App approved in Apple Store with it. Did you specify a version number maybe? Better leave that out to use the last version.

@svenrobin
Copy link

I have left it out, do you know if you built the framework with the armv7s architecture @mvanhalen ? it's crashing only for that architecture.

@mvanhalen
Copy link

Ah ok. It´s possible that was left out. I tested only with ios8

But still PhoneGap build does not give any errors. Did you add the plugin to your PhoneGap project directly? Without using PhoneGap build?

Sent from Windows Mail

From: svenrobin
Sent: ‎Sunday‎, ‎May‎ ‎24‎, ‎2015 ‎3‎:‎18‎ ‎PM
To: sgrebnov/cordova-plugin-azure-notificationhub
Cc: Martijn van Halen

I have left it out, do you know if you built the framework with the armv7s architecture @mvanhalen ? it's crashing only for that architecture.


Reply to this email directly or view it on GitHub.

@svenrobin
Copy link

i added it with a build and that works, its just when i try to build it for armv7s, is it possible for you to recompile it for armv7s also @mvanhalen ?

@svenrobin
Copy link

bump @mvanhalen !

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

6 participants