Start a new topic
Solved

Cordova app crash on startup on iOS

Hi,


 I just install Wikitude cordova plugin on my existing app, and I get this error on startup in my iPad :

dyld: Library not loaded: @rpath/WikitudeSDK.framework/WikitudeSDK
  Referenced from: /var/containers/Bundle/Application/D210DC72-692C-4A82-930C-E14A34E9244E/XXX.app/XXX
  Reason: no suitable image found.  Did find:
	/private/var/containers/Bundle/Application/D210DC72-692C-4A82-930C-E14A34E9244E/XXX.app/Frameworks/WikitudeSDK.framework/WikitudeSDK: code signing blocked mmap() of '/private/var/containers/Bundle/Application/D210DC72-692C-4A82-930C-E14A34E9244E/XXX.app/Frameworks/WikitudeSDK.framework/WikitudeSDK'

I view some issues, but none of then works.


WikitudeSDK is already embedded :


image

Always Embed Swift Standard Librairie is set to YES.

I dont find "embedded binaries contain swift code" who are deprecated


image


And "Enable Bitcode" is set to "NO"

image


Any ideas about what can be messing around?


Thank you.


When I tried this :  

In XCode -> Build Phase -> Linked frameworks and libraries: choose your particular framework status from required to optional.

 From this issue : https://stackoverflow.com/questions/46447779/xcode9-code-signing-blocked-mmap-while-running-on-device


The app dont crash on startup. 


But, "wikitudePlugin.isDeviceSupported()" define my device as not supported with a "null" message...

But it's an iPad Air 2 with iOS 11. it's could be work no? 


From the samples, I tried to use this setting : 

{
            "path": "www/world/01_ImageTracking_1_ImageOnTarget/index.html",
            "requiredFeatures": [
                "image_tracking"
            ],
            "startupConfiguration": {
                "camera_position": "back",
                "camera_resolution": "auto"
            }
        }

 Any ideas?


Thank you.

Hi,



I'm afraid I have no experience with this specific error. I also do not understand, based on the error message, what the problem could be. But setting the framework to optional is certainly not the way to go; you'll have to leave that at required and deal with the initial issue.


Have you by any chance tried the suggestions of these pages?


https://stackoverflow.com/questions/32730312/reason-no-suitable-image-found

https://egeek.me/2017/10/21/code-signing-blocked-mmap-on-ios-device/



- Daniel


Login or Signup to post a comment