-
-
Notifications
You must be signed in to change notification settings - Fork 197
Objective-C code not working in NativeScript app #5022
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
Comments
Have downloaded and looked at the #4343 issue but no progress was made on my problem |
Hi @ReeceReynolds , To do so, add to the |
@KristianDD Thank you for your quick reply! I have added the line you suggested to the |
@ReeceReynolds this is strange. Will check if we can reproduce this behaviour. |
@ReeceReynolds I managed to get the first compilation error:
After I added the Please try removing Also you can check if removing I am unable to test on a real device at the moment and I am using Simulators. Do you deploy on a real device or a Simulator? |
From a fresh build I get the Watch app beta message. The iOS app installs on the device but the Watch app doesn't. I am deploying on both real devices and Simulators. After temporarily removing |
@ReeceReynolds as we are unable to reproduce it with our project and all works as expected, could you please try to isolate the problem and attach to the issue a sample project that doesn't install on your watch. That will help us investigate the issue further. |
Closing due to inactivity. |
Environment
Describe the bug
I am trying to add Objective-C code to a NativeScript project I am working on. I have followed the documentation Adding Objective-C Code to a NativeScript App but have had no luck. When running
tns run ios
I get the following error:I have also tried to create a plugin for this but run into a Podspec issue.
SendToWatch.h
SendToWatch.m
module.modulemap
File Structure
The
SendToWatch.m
SendToWatch.h
andmodule.modulemap
live inside the src folder:The text was updated successfully, but these errors were encountered: