What is LiveView Native
Introducing LiveView Native, the cutting-edge framework from Dockyard
Do more with less, with LiveView...
For further actions, you may consider blocking this person and/or reporting abuse
This post just convinced me to build my startup on Phoenix instead of Rails. Thank you!
Hi! Great article! Long-waited native development is coming!
However, I get error when I try to run
mix lvn.swiftui.gen
:Do you know what might be wrong?
Followed your instructions.
Versions
Solved by adding
to
config.exs
as described in theliveview-native/live_view_native
readme.Hi Marat, happy that you are able to solve it by yourself. In case you miss to add LiveView Native changes into your project, use
mix lvn.gen --no-copy
command to get the list of all the changes that we need to integrate manually.Opening prj file in the Xcode results in the following notice:
My Xcode version is 15.3. What should I do in this case?
Hi Marat, seems like existing code is written with Swift 3 which is not supported by your xcode version. Try to delete "native" folder and recreate it using command
mix lvn.swiftui.gen
Let me if this helps you.
I removed
native
folder, ranmix lvn.swiftui.gen
and opened .xcodeproj file.The Xcode shows me same dialog window with text:
I don't have Xcode 10.1.
Does it mean this approach will not work for me?
Hi Marat. I belive this might be some environment related issue. Please email me on rushikesh.d.pandit@gmail.com with your good time to connect and we can take a look at it. I will be happy to help you.
Thank you!
Recap: to enable the successful build on the MacOS Sonoma Xcode 15 we had to add the following adjustments:
I had to download the iPhone simulator by opening Xcode > Settings > Platform, and downloading iOS 17 simulator, and also iPhone 15 simulator available under + button.
And selecting the needed simulator version in the list or Run Destinations:
module name "" is not a valid identifier
error inNativeDemo
target Build settings Packaging section:I'm a newbie in the iPhone development so probably product name could be simpler.
NativeDemo
Build settings:After doing this I was able to build the project successfully.
Happy coding!
After solving the packages error I have the following one:
Any idea how to solve this?
somehow I solved this and got the app running in the simulator. I must say that Xcode configuring is insane...
I am glad that you are able to run the app on simulator. Feel free to connect with me if you face any issues with xcode.