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

"Error - The plugin in your app does not support the compulsory arm64" #65

Closed
ivanssa opened this issue Feb 2, 2016 · 15 comments
Closed

Comments

@ivanssa
Copy link

ivanssa commented Feb 2, 2016

Could help in this matter, I added the plugin correctly but when you build the Phonegap site only android version is compiled and get the following error in the ios platform, "Error - The plugin in your app does not support the compulsory arm64 (64- bit support) architecture. "how do I solve? other questions in this version ios plugin enables the native option monitoring gps background defined as ever? as well as the new role of facebook friends nearby? which enables the GPS function always as seen in the image below?

aways1

/-------------------------------------/

aways

@christocracy
Copy link
Member

iOS version?
Cordova version?

I don't know what you're trying to ask related to facebook but this plugin,
in order to operate in the background, does of course request "always
usage" permission instead of "when using" permission.

https://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CLLocationManager_Class/#//apple_ref/doc/uid/TP40007125-CH3-SW72

On Tuesday, February 2, 2016, ivanssa notifications@github.com wrote:

Could help in this matter, I added the plugin correctly but when you build
the Phonegap site only android version is compiled and get the following
error in the ios platform, "Error - The plugin in your app does not support
the compulsory arm64 (64- bit support) architecture "how do I solve? other
questions in this version ios plugin enables the native option monitoring
gps background defined as ever? as well as the new role of facebook friends
nearby? which enables the GPS function always as seen in the image below?

[image: aways1]
https://camo.githubusercontent.com/880b7d0d25e06a0da3019789e23e0c36acb7c013/68747470733a2f2f636c6f756467697468756275736572636f6e74656e74636f6d2f6173736574732f333136363137342f31323734303337332f34626333386130302d633935312d313165352d393565662d643732333639636232333666706e67
[image: aways]
https://camo.githubusercontent.com/70ed531d1ffc48dfe1362109ddb12a5c985c1739/68747470733a2f2f636c6f756467697468756275736572636f6e74656e74636f6d2f6173736574732f333136363137342f31323734303337342f34626336303131382d633935312d313165352d386337352d383364646465343566333938706e67


Reply to this email directly or view it on GitHub
#65
.

Snet form Gmail Mobile

@ivanssa
Copy link
Author

ivanssa commented Feb 2, 2016

Hello thanks for the reply, I am using build.phonegap.com to compile my app made with ionic, in android seems to work but I get an error when compiling the version ios like the image below:

erro

follows the error log excerpt below:

_kCLLocationAccuracyBest ", referenced from:
      - [CDVLocation StartLocation:] in CDVLocation.o
      - [CDVBackgroundGeoLocation translateDesiredAccuracy:] in CDVBackgroundGeoLocation.o
      - [CDVBackgroundGeoLocation setPace:] in CDVBackgroundGeoLocation.o
  "_kCLLocationAccuracyNearestTenMeters", referenced from:
      - [CDVLocation StartLocation:] in CDVLocation.o
      - [CDVBackgroundGeoLocation translateDesiredAccuracy:] in CDVBackgroundGeoLocation.o
ld: symbol (s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

On facebook is that it is the only app I have to request activation of GPS no app via an alert u can enable the GPS option always, as usual so I asked that only with this plugin ios will provide this option or do I have to do any more configuration to use this option in my phonegap app?

facebook

///////////////////////////////////////////////

aways

@ivanssa
Copy link
Author

ivanssa commented Feb 3, 2016

@christocracy some solution for this error?

@christocracy
Copy link
Member

I return from vacation tomorrow night

On Wednesday, February 3, 2016, ivanssa notifications@github.com wrote:

@christocracy https://github.com/christocracy some solution for this
error?


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

Snet form Gmail Mobile

@ivanssa
Copy link
Author

ivanssa commented Feb 3, 2016

Thank you, I'll be awaiting ...

@ivanssa
Copy link
Author

ivanssa commented Feb 4, 2016

Hello @christocracy I discovered the error reason, changed the version of the plugin repository par 0.3.5 and the problem was solved, I now have the option to set the app as GPS always as well as the use of facebook friends nearby.

Congratulations for this great plugin,
I just have one more question, how can I create an alert requesting the approval of the location of the access to change aways within my app?

@christocracy
Copy link
Member

There is no version 0.3.5. Do you have a link to this 0.3.5? What is the
plugin ID? If it begins with "org.transistorsoft.*", that's the old junk
version which hasn't been supported in over a year.

You're not quite understanding how this plugin works. It's smarter than
you think. The plugin automatically adds NSLocationAlwaysUsage permission
and sets a default NSLocationAlwaysUsageDescription in you .plist.

If you're not seeing the plugin automatically ask for that permission,
you're doing something wrong.

On Thursday, February 4, 2016, ivanssa notifications@github.com wrote:

Hello @christocracy https://github.com/christocracy I discovered the
error reason, changed the version of the plugin repository par 0.3.5 and
the problem was solved, I now have the option to set the app as GPS always
as well as the use of facebook friends nearby.

Congratulations for this great plugin,
I just have one more question, how can I create an alert requesting the
approval of the location of the access to change aways within my app?


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

Snet form Gmail Mobile

@ivanssa
Copy link
Author

ivanssa commented Feb 4, 2016

@christocracy Yes I can see now the plugin work with background now and the option has always been available on the repository you could then move the line of code <plugin ... with the correct version to add in my config.xml that does not occur error build.phonegap.com the site? the other question was as it is possible to make the ios settings change request to activate the GPS as always in as app approved notifications, GPS etc .. when we opened the first app ...

@christocracy
Copy link
Member

The only way to use the plugin with PGB is to follow these steps exactly:

https://github.com/transistorsoft/cordova-background-geolocation-lt/wiki/PhoneGap-Build-Installation

If you're installing the plugin in any other manner, you're doing it
wrong.

On Thursday, February 4, 2016, ivanssa notifications@github.com wrote:

@christocracy https://github.com/christocracy Yes I can see now the
plugin work with background now and the option has always been available on
the repository you could then move the line of code <plugin ... with the
correct version to add in my config.xml that does not occur error
build.phonegap.com the site? the other question was as it is possible to
make the ios settings change request to activate the GPS as always in as
app approved notifications, GPS etc .. when we opened the first app ...


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

Snet form Gmail Mobile

@christocracy
Copy link
Member

The plugin has always requested "always" authorization. This is central to
the plugin's theory of operation, to run "always" in the background.

If you're not seeing the plugin request "always" authorization, you have
some issue where another plugin has already requested "when in use"
authorization, such as the std cordova-plugin-geolocation.

Try removing Cordova-plugin-geolocation (if you're using it), delete the
app from your phone, then reinstall.

You'll see that my plugin certainly does request "always" authorization.

On Thursday, February 4, 2016, ivanssa notifications@github.com wrote:

@christocracy https://github.com/christocracy Yes I can see now the
plugin work with background now and the option has always been available on
the repository you could then move the line of code <plugin ... with the
correct version to add in my config.xml that does not occur error
build.phonegap.com the site? the other question was as it is possible to
make the ios settings change request to activate the GPS as always in as
app approved notifications, GPS etc .. when we opened the first app ...


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

Snet form Gmail Mobile

@ivanssa
Copy link
Author

ivanssa commented Feb 5, 2016

Hello @christocracy again to try to include the plugin on my config.xml through the code<plugin name = "org.transistorsoft.cordova.background-geolocation" />I receive an error in build.phonegap stating "Error - The Following plugin, plugin version or the dependancy of this plugin is not on npm: org.transistorsoft.cordova.background-geolocation "so I opted for this entry <plugin name =" org.transistorsoft.cordova.background-geolocation "spec =" 0.3.5 "source = "pgb"> this link https://build.phonegap.com/plugins/513 who managed to compile, is that correct? if not what input should add in my config.xml?

@christocracy
Copy link
Member

You don't understand. You're trying to install the old fee version
"org.transistorsoft.". Delete that from your app. The new version begins
"com.transistorsoft.
".

Follow the Gradle instructions here.

https://github.com/transistorsoft/cordova-background-geolocation-lt/wiki/PhoneGap-Build-Installation

On Friday, February 5, 2016, ivanssa notifications@github.com wrote:

Hello again to try to include the plugin on my config.xml through the code
I receive an error in build.phonegap stating "Error - The Following plugin,
plugin version or the dependancy of this plugin is not on npm:
org.transistorsoft.cordova.background-geolocation "so I opted for this
entry this link >> https://build.phonegap.com/plugins/513 who managed to
compile, is that correct? if not what input should add in my config.xml?


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

Snet form Gmail Mobile

@ivanssa
Copy link
Author

ivanssa commented Feb 5, 2016

Sorry if I was not clear, I followed all the instructions but still get errors "plugin version or a dependancy of this plugin is not on npm:" when adding the plugin with id "com.transistorsoft.cordova.background-geolocation" adding liha<plugin name = "com.transistorsoft.cordova.background-geolocation" />I'm using phonegap plugins list in this https://build.phonegap.com/plugins and so can only add to the success the old version through the config.xml entry <plugin name = "org.transistorsoft.cordova .background-geolocation "spec =" 0.3.5 "source =" pgb "/>

@christocracy
Copy link
Member

You're still doing it wrong. you need to fork this repo and change the plugin
ID
https://github.com/transistorsoft/cordova-background-geolocation-lt/blob/master/plugin.xml#L5to
your own a unique name.
https://github.com/transistorsoft/cordova-background-geolocation-lt/wiki/PhoneGap-Build-Installation#make-your-pluginxml-pgb-compatible

eg: com.yourcompany.cordova.background-geolocation

You will NOT install com.transistorsoft.cordova.background-geolocation

On Fri, Feb 5, 2016 at 2:47 PM, ivanssa notifications@github.com wrote:

Sorry if I was not clear, I followed all the instructions but still get
errors "plugin version or a dependancy of this plugin is not on npm:" when
adding the plugin with id
"com.transistorsoft.cordova.background-geolocation" adding lihaI'm using
phonegap plugins list in this https://build.phonegap.com/plugins and so
can only add to the success the old version through the config.xml entry <plugin
name = "org.transistorsoft.cordova .background-geolocation "spec =" 0.3.5
"source =" pgb "/>


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

Chris Scott
Transistor Software http://www.transistorsoft.com

@ivanssa
Copy link
Author

ivanssa commented Feb 7, 2016

Hello I thought there was any official public plugin on npm to direct install the build phonegap, I have not used any more private plugin will follow the recommendations, thank you once again for your help.

@ivanssa ivanssa closed this as completed Feb 7, 2016
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

2 participants