-
-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Milestone
Description
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.2.0
- Cross-platform modules: 5.2.0
- iOS Runtime: 5.2.0
Describe the bug
To Reproduce
tns create jsApp --js && cd jsApp && code .- Replace your
onTapmethod with the one below:
viewModel.onTap = (args) => {
const btn = args.object;
const native = btn.nativeView;
console.log(native);
};
- Set a breakpoint inside the above-mentioned method.
- Start an old simulator (<11.0) e.g. with iPhone 6 with iOS 9.3.
- Click
Launch on iOSfrom VSCode. - Try to inspect the
nativeViewof the button. - You will get
[UIButton adjustsImageSizeForAccessibilityContentSizeCategory]: unrecognized selector sent to instanceexception and the app will crash (this property is introduced in iOS 11).
Expected behavior
The iOS runtime should not return properties for newer iOS version through the debug protocol. In this case the returned properties should be for iOS <=9.3.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels