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.
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
I removed native folder, ran mix lvn.swiftui.gen and opened .xcodeproj file.
The Xcode shows me same dialog window with text:
The target “QuizArena” contains source code developed with Swift 3.x. This version of Xcode does not support building or migrating Swift 3.x targets.
Use Xcode 10.1 to migrate the code to Swift 4.
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.
Recap: to enable the successful build on the MacOS Sonoma Xcode 15 we had to add the following adjustments:
Set Swift version 15 in the project Build Settings:
Since I didn't have the iOS build type in the build platform list
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:
Adding iPhone destination in the NativeDemo target General settings:
Set product module name to avoid module name "" is not a valid identifier error in NativeDemo target Build settings Packaging section:
I'm a newbie in the iPhone development so probably product name could be simpler.
Set the Base SDK architecture in the NativeDemo Build settings:
After doing this I was able to build the project successfully.
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.exsas described in theliveview-native/live_view_nativereadme.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-copycommand 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.genLet me if this helps you.
I removed
nativefolder, ranmix lvn.swiftui.genand 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 identifiererror inNativeDemotarget Build settings Packaging section:I'm a newbie in the iPhone development so probably product name could be simpler.
NativeDemoBuild 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.