Skip to content

Commit 4dd79d2

Browse files
Logikgaterigor789
andauthored
chore: add step to fix attaching to real device (#115)
* chore: Add step to fix attaching to real device The current README for attaching the runtime to an existing project works only if you are using a simulator to debug. For some reason when using a real device Xcode requires you to explicitly add `Nativescript.framework` on the General Tab. * Update README.md Co-authored-by: Igor Randjelovic <rigor789@gmail.com>
1 parent 6164b56 commit 4dd79d2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ Remove the `NativeScript.xcframework` from the General tab, as we will no longer
4040

4141
<img width="693" alt="Screenshot 2020-09-09 at 18 47 23" src="https://user-images.githubusercontent.com/879060/92628311-e6f09c80-f2cc-11ea-8977-201517badc3b.png">
4242

43+
Add the `Nativescript.framework` from the v8ios workspace (only required when running on a physical device):
44+
45+
<img width="402" alt="Screen Shot 2021-04-12 at 11 49 10 AM" src="https://user-images.githubusercontent.com/2379994/114423589-51c8c580-9b85-11eb-9d30-eb1cbf73454a.png">
46+
47+
4348
Hitting Run in XCode should start the app in the simulator, and we can now add breakpoints to the runtime and step through it with the debugger. To apply changes to the javascript, make sure you run `ns prepare ios` to re-bundle it into the `platforms/ios` folder.
4449

4550
# Overview

0 commit comments

Comments
 (0)