Because Ionic Deploy Legacy is broken, I have to update to Ionic Pro earlier than I would like to.
However Ionic Pro deploy is also broken.
I am manually downloading the new snapshot/version. It downloads fine. When the app is closed and relaunched, the app crashes - and it’s related to [IonicDeploy_doRedirect]
Android SDK Tools : 26.0.2
ios-deploy : 1.9.2
ios-sim : 6.0.0
Node : v8.1.4
npm : 5.1.0
OS : macOS Sierra
Xcode : Xcode 9.0 Build version 9A235
Misc:
backend : pro
I haven’t tried android yet so for now this is an ios problem. Has anyone encountered this and found a work around. At this stage both Legacy deploy and Pro deploy are useless. Also, the docs for Ionic Pro are hopeless - none of the links work. Come on Ionic Team. If you are going to charge us now, at least sort the basics out…
I have limited experience programming directly for iOS, but am wondering if you’re using any sort of location tracking, mapping, or push services. What experience I do have working with hands-on iOS, those NS strings are a constant source of contention. Especially the locations services and push stuff, combined with developers certificates, provisioning profiles, etc.
Though, generally when recieving an error based on an NSString, it’s an issue with your code. Somewhere in your app, you may be trying to initiate some attribute with a string that does not exist, or some string that should have some attribute. That may explain the ‘nil arguement’ statement
here
Though I have observed alot of growing pains with Ionic transitioning to Pro, I don’t think they provide fixes for potentially faulty coding. That’s for us to figure out on our own.
If i’m wrong on this one, I promise to punch myself in the face.
FYI, the references to Foundation, CoreFoundation, are iOS terms, not Ionic terms. Foundation is an iOS ‘library’ that allows your app access to things like NSStrings, NSObjects, NSUrls. Further suggesting there is a coding issue within your app.
The error is:
*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘*** -[NSRegularExpression enumerateMatchesInString:options:range:usingBlock:]: nil argument’
I have no idea what this means but I guess my point is I’m not sure how my code is affecting this code in IonicDeploy.m.
The comments say it’s code for checking if cordova.js script tag is commented out (line 524 in IonicDeploy.m
Can someone with ios knowledge can help explain what is happening here, please do
I’m not but the plugin obviously is. I assume it is checking the uuid of the current and new snapshots.
From what I understand the code that isn’t working is checking if the script tag for cordova.js exists, or if it is commented out. Annoying part is I don’t even need or want this check but I don’t know enough about C to remove the code. Whatever I change will also be overwritten every time the plugin is updated.
For reference here is the method that causes the error.
Haha yeah. Deploy works fine on android devices. This problem is only on ios. I really hope they fix it. At the moment both the legacy deploy and the pro deploy are unusable.
Yeah, Apple has been notoriously difficult for me to contend with. I suppose having a Mac would help…but, trying to navigate Apple’s process is kind of extremely frustrating. The apparent missteps between Ionic and Apple are unfortunate, but im not about to reboot Netbeans any time soon.