Skip to content

Support Objective-C code in App Resources for iOS applications #4343

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

Closed
KristianDD opened this issue Feb 6, 2019 · 1 comment
Closed

Support Objective-C code in App Resources for iOS applications #4343

KristianDD opened this issue Feb 6, 2019 · 1 comment
Assignees
Milestone

Comments

@KristianDD
Copy link
Contributor

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: next
  • Cross-platform modules: 5.1.2
  • iOS Runtime: 5.1.1

Describe the bug

After build the native classes in the Objective-C files inside App Resources are not available for use in the application.

To Reproduce

Download sample project and then use tns run ios.

Expected behaviour
To be able to use the native classes defined in the Objective-C files inside App Resources.

Sample project
testSrc.zip
When you run the project, click the "Tap" button and CONSOLE LOG file:///app/main-view-model.js:18:20: Hey! log should appear.

Additional context

Additionally, please verify that after removing ...app/App_Resources/iOS/src the project will rebuild and deploy successfully (it is expected that the application will crash if the button is clicked).

@KristianDD KristianDD added bug os: ios no-changelog The issue is present only in `next` versions and was not included in official version. labels Feb 6, 2019
@KristianDD KristianDD self-assigned this Feb 6, 2019
@KristianDD KristianDD reopened this Feb 6, 2019
@rosen-vladimirov rosen-vladimirov added this to the 5.2.0 milestone Feb 7, 2019
@endarova endarova self-assigned this Feb 8, 2019
@endarova endarova closed this as completed Feb 8, 2019
@rosen-vladimirov rosen-vladimirov changed the title Objective-C code in App Resources not included in iOS application Support Objective-C code in App Resources for iOS applications Feb 11, 2019
@rosen-vladimirov rosen-vladimirov removed the no-changelog The issue is present only in `next` versions and was not included in official version. label Feb 11, 2019
@rosen-vladimirov
Copy link
Contributor

NOTE: You can place your Objective-C code in <path to App_Resources/iOS/src directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants