NativeScript / nativescript-ios-imessages

Simple app extension that interact with the Messages app
14 stars 1 forks source link

Adding the latest master build of the ios-runtime #1

Open roblav96 opened 8 years ago

roblav96 commented 8 years ago

I love how NativeScript is always keeping tabs with the latest and greatest! 😄

Do we have a demo repository where we can just run

tns install
tns run ios

?

If not, I'm confused on the instructions,

Create a nativescript project, add the latest master build of the ios-runtime and prepare it for the ios platform

What do you mean by add the latest master build? I'm very familiar with the ios-runtime and how to build it ios-runtime#creating-an-xcode-project & running-latest#building-the-ios-runtime but I don't quite understand what's being asked to do.

Thank you!

jasssonpet commented 8 years ago

Hi @roblav96,

What this means is that after you build the iOS runtime, you'll have a tns-ios-2.3.0.tgz package. After that you have to add it to the current project with tns platform add ios --framework-path /<path_to_package>/tns-ios-2.3.0.tgz. This will skip downloading the latest published package from npm and will use the provided one instead. Please note that if you want to test this sample, you'll have to build the runtime from this PR https://github.com/NativeScript/ios-runtime/pull/612, which is not merged yet as of now.

But you don't have to do that. In the sample repository this runtime is already built, published and ready to use. You can find it in the platform/ios folder.

One more caveat is that currently you can't launch app extensions from the NativeScript CLI. The best way to test the sample is to open the Xcode project located in platforms/ios/messages.xcodeproj and run the iMessageTest scheme from there. This will launch the Messages app and you'll see the extension there.

roblav96 commented 8 years ago

@jasssonpet That makes much more sense :D

I'm definitely going to play around with this. Thank you!

roblav96 commented 8 years ago

@jasssonpet pretty neat stuff in here!!! I got it to build and run, and now gonna start developing on it with livesync and the cli.

I'll write up my experience and throw it in the docs.

Any tips you might want to throw my way?