-
-
Notifications
You must be signed in to change notification settings - Fork 84
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
App crashes due to main interface NSMainNibFile~ipad #90
Comments
Please try building the example project to confirm you can reproduce this issue in isolation from other plugins and modules. |
I checked with your example project, and indeed, it worked. But I assume, this was pure luck: In the backup of *-Info.plist, I see
But when I add some logging at the beginning of updateIosPlist in applyCustomConfig.js:
Already there, the plist content is corrupt. The empty strings are gone:
This happens, since plist is not working symmetrically.
produces
Therefore the string value is gone. See also TooTallNate/plist.js#79. I tried to fix it by explicitly setting the values:
But this did not work. Finally I replaced the line
with
Now everything is fine. It would be great if you could add this fix to your plugin. |
I have a similar issue on my project. Whenever I use config-file for iOS, the original Cordova-generated: <key>NSMainNibFile</key>
<string></string>
<key>NSMainNibFile~ipad</key>
<string></string> gets converted to: <key>NSMainNibFile</key>
<key>NSMainNibFile~ipad</key> which makes the app crash! |
Should be fixed in |
@dpa99c This is still occurring on 3.1.2 for me with XCode 8.2.1 exactly as detailed earlier in this issue. |
in v3.1.3 NOT fixed!!! or you do too much breaking changes in updates :( <platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<!-- Set deploy target SDKs for release and debug builds -->
<preference name="ios-XCBuildConfiguration-IPHONEOS_DEPLOYMENT_TARGET" value="9.0" buildType="debug" />
<preference name="ios-XCBuildConfiguration-IPHONEOS_DEPLOYMENT_TARGET" value="9.0" buildType="release" />
<config-file platform="ios" parent="NSContactsUsageDescription" target="*-Info.plist">
<string>$(PRODUCT_NAME) Allow use Contact</string>
</config-file>
<config-file platform="ios" parent="NSPhotoLibraryUsageDescription" target="*-Info.plist">
<string>$(PRODUCT_NAME) Allow use PhotoLibrary</string>
</config-file>
<config-file platform="ios" parent="NSCameraUsageDescription" target="*-Info.plist">
<string>$(PRODUCT_NAME) Allow use Camera</string>
</config-file>
<config-file platform="ios" parent="ITSAppUsesNonExemptEncryption" target="*-Info.plist">
<false />
</config-file>
</platform>
|
I tried using the exact config you have posted in an isolated test case and it works fine with Please post exact steps to reproduce or an equivalent Cordova project which illustrates the issue.
You can see this is not the case if you look at the commit history |
NSMainNibFile~ipad as default MAIN NIB -> I created test project with cordova.. this line is empty!!! PS: in backup file |
@WuglyakBolgoink Those steps work fine for me: release builds OK and it runs OK: screencast. Using |
Hallo @dpa99c , I think , something wrong with my dev environment today (I have next 2 week vacation) and I didn't have much time to fix this issue. I try to do clean project with my |
It looks like the most recent version of |
@jonathankau Thanks for the info, that maybe explains why I couldn't reproduce it but @WuglyakBolgoink can. I will investigate. If this is the case, I will fix the version to |
I'm able to reproduce this issue if I explicitly force the version to However, this plugin has for sometime pinned the version to Since The following console output shows my node_modules structure after installing the plugin: console output
If someone who is encountering this issue could post the output from |
Going to close this since there's nothing more that can be done by this plugin to resolve this, i.e. it is pinning |
This seems to be an issue with the newest version of xcode.
For what it's worth, this does seem to fix it for me:
|
I am using the plugin for using different orientation settings for iPhone and iPad:
(more or less the same as in your example)
After
cordova prepare
, on the first view everything looks fine in Xcode. But... the main interface has now the valueNSMainNibFile~ipad
- for iPhone as well as for iPad. And when I try to start the app on iPhone, I get an exception:When I clear the field for main interface manually, everything works fine. But this is not, what I want to do.
I am using:
Is there something, I am doing wrong? Or is there a hidden "feature" in the plugin?
The text was updated successfully, but these errors were encountered: