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
Modules does not support iOS9 #740
Comments
The NativeScript for iOS runtime doesn't support compile-time Objective-C constants, but we're working on adding support for them. However, it turns out that @Fatme and I came up with such a workaround - instead of comparing the result of |
@fealebenpae Is it possible to return some other type (e.g. not a primitive JS type) which holds the native value? This way it will be possible to do comparison with it. |
If we don't return a number primitive we can only return an object, and objects in JavaScript are always compared using identity equality, rather than value equality, so it wouldn't work anyway. |
Just fyi I hit this in one of my apps as well. Here's the error I get when trying to use a file:///app/tns_modules/ui/tab-view/tab-view.js:168:54: JS ERROR TypeError: tabBarItem.setTitlePositionAdjustment is not a function. (In 'tabBarItem.setTitlePositionAdjustment({ horizontal: 0, vertical: -20 })', 'tabBarItem.setTitlePositionAdjustment' is undefined) |
As a me too fyi, |
@ignaciofuentes, we say that this is an iOS 9 issue, but it's the iOS 9 SDK in Xcode 7 that's the problem, not iOS 9 itself. You can build a NativeScript app with Xcode 6.4 and it will work on iOS 9, but if you build the app with Xcode 7 and run it on iOS 8 you'll get the same problem, so that's why you had the same issue on the iOS 8.4 Simulator. |
I also experienced this problem while trying the tab-view example as specified in the docs it crashes with the above mentioned error. Can the docs be updated with a warning or is there an ETA on a fix for this? |
@fealebenpae Any idea when nativescript will support xCode 7 to circumvent the above mentioned crash using tab-view? |
+1 |
This is a major challenge. Cannot debug a simple Hello World app in the iOS simulator with a TabView on an up-to-date Mac. Is there a work around that can restore TabView support before v1.5? |
Follow-up for those having the problem with TabView described above. Thanks to some quick sleuthing by @jbristowe this work around is available: You need to patch your local copy of Patch these two lines: Changing from a method call to a value assignment fixes the error. Thanks @jbristowe! |
Looks like a fix was made a few days ago: 6a17651 |
How do you get the master in a project? I have searched all the docs and On 10:23pm, Fri, Oct 9, 2015 John Bristowe notifications@github.com wrote:
|
@bradmartin If you're just trying to fix this TabView error in a local project, just look for the (project root) > node_modules > tns-core-modules > ui > tab-view You should find the JS file there, and you can simply update the two lines referenced above to clear the error. This shouldn't be necessary after the next NativeScript release since the fix has been made to the TNS master branch. |
This comment was marked as abuse.
This comment was marked as abuse.
Thanks @toddanglin and @NathanaelA |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Apple has made a change in the API and
NSNotFound
is converted from an enum to a constant.This breaks the apps in iOS9 and Xcode 7 emulator which uses it by default.
The text was updated successfully, but these errors were encountered: