-
Notifications
You must be signed in to change notification settings - Fork 467
App store is rejecting my plugin now #26
Comments
Dammit... The best would be this: move local development mode to separate folder. Right now you can try to hit the "Convert" button and republish the app. Or I'll update swift files and republish the plugin on Monday. During the weekend I wanted to fix some issues, including www folder reinstall. |
As I understand - you are building project from the command line. After some digging and experiments, I found this SO answer. According to it, the problem is with generated If yes - then this is a "Convert to Latest Swift Syntax" does nothing. Tried it, no changes were made. Also, used latest swift sources - same result. So this is some strange behaviour from the Xcode & Ionic/Cordova. |
Sorry for the slow reply. Yeah, I'm using a command line build tool, but it is pretty straightforward:
and then the . |
As for that directory, yeah, there isn't anything:
|
Try to build for release from the Xcode, unarchive generated |
Nope, still no
If I diff the two outputs I get:
( |
Now that is strange. Can you check this:
|
Nope, just one row |
I need to head to bed. I'll read whatever instructions you leave in the morning. |
Okey, thanks for the try. I'll try to figure out something. But still think that this is some Xcode/xcodebuild issue. Good night) |
Well it should be easy to reproduce. I'm on XCode 7.0 if that matters. Just add your plugin to a cordova project, use the build command I posted then submit the IPA to Test Flight and see the rejection email. |
Well, as soon as I include this plugin and try to build on REAL device (iOS9, iOS8 just works fine) (simulator just works fine) I get: dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /private/var/mobile/Containers/Bundle/Application/... Reason: no suitable image found. Did find: /private/var/mobile/Containers/Bundle/Application/1.../Frameworks/libswiftCore.dylib: mmap() error 1 at address=0x100CD0000, size=0x0015C000 segment=__TEXT in Segment::map() mapping /private/var/mobile/Containers/Bundle/Application/.../Frameworks/libswiftCore.dylib As soon as I remove this plugin, everything works fine. Now I've submitted my app to the app store yesterday before trying on a real device with iOS 9 (just updated today) , so I'm dead sure that Apple will also will reject my app as it will crash. Do you have a fast fix here @nikDemyankov? Some guys on SO said its related due to old mobile-provisionings (missing OU in subject, but my certs are fine) Some embedded-framework problem here? |
Just created a test project and launched it on the iPhone 6 with iOS 9. Nothing crashes, updates are performed... I really need to hurry up with the separate plugin for local dev mode... |
@nikDemyankov It isn't crashing or anything. The plugin works great when developing. Apple is rejecting it when you send the app to the app store. For this reason, I can't get your plugin into my prod app at all. Are you using it for production apps in the store? |
Only on real device. And only since I've upgrade to iOS 9. iOS 8 worked well. (iPhone 6)
I alreay posted all the output to you.
Yes, it crash the device. App will start up (no compile error), but die at first signal.
Xcode 7.0.1, newest
Cordova My environment is up to date, CLI, Cordova and all the tools also. Edit: |
Yes, these are two different problems. @hirbod can you open another issue since yours doesn't match the title of this issue. |
Created separate issue for Swift and crashes. |
+1 to the Swift stuff, having the same issues. |
Any progress on this? I really need it and am about to abandon using this plugin if we can't fix this soon. |
Yes, working on version 1.1.0. Local development mode will be a separate plugin - add-on to this one. For the release version you just remove it and no problem with the swift. I hope to finish it by the end of the week. |
ping, anything I can help with? Can I send a PR with just deleting all the swift code? |
No need in PR. There is a branch with version 1.1.0. It is already without local-dev mode and swift. And it is not gonna change anymore, only docs. You can use it. Right now I'm finishing with the local-dev plugin. Need to fix the cleanup process, and then only docs is left. |
Released v1.1.0. In it local development feature is moved to the separate plugin - Local Development Add-on. You should use it for development purpose only, and when it is time for release - remove it by executing:
In the case of Ionic:
After updating Hot Code Push plugin in the existing project you should check the following:
Or you can just update the plugin, remove ios platform and then add it again. As a result - cordova will install all the plugins and you don't have do to anything. |
Also, added Migrating from previous version section in the readme. |
Closing the issue since no more swift code in the main plugin. |
I tried submitting an App with your plugin as my only change and got this email from Apple:
I don't know if it is related, but when I open the XCode project I get this:
Can you either update your Swift code or remove it please?
The text was updated successfully, but these errors were encountered: