To run the iOS app, you need to follow these Steps: rebuild the app in
Android Studio [Taskbar in AS → Build → Rebuild Project]
After that
you need Xcode. In the App Folder is a iosWeeFood Folder. From there you
can open the workspace-file
in xcode. Run the App with the Start Button
on top.
In Case you never run an app in Xcode, there might be some issues. For some of them I have found a solution.
At first: Sometimes you have to build the app twice (have you tried turning it off and on again). And sometimes you need to rebuild the app in Android Studio again.
open the Terminal in root directory from the app run: chmod +x gradlew
to give full permission
open the Terminal in root directory from the app run:
gradle; gradle wrapper
if gradle is missing: install gradle via
terminal run: brew install gradle
open the Terminal in iosApp
directory from the app run:
pod deintegrate; pod install
to clean the pod and reinstall it
go in Xcode to the root project iosApp → Targets
: set iosApp Filter to
All
and Combined
Build Settings → Linking → Other Linker Flag Set a new variable
-lsqlite3
go to Xcode to settings → locations
set a Xcode version in the command
line tool sections
CocoaPods https://kotlinlang.org/docs/native-cocoapods.html
Install the CocoaPods dependency manager: sudo gem install cocoapods
Install the cocoapods-generate plugin: sudo gem install cocoapods-generate
Use the suffix native-mt
for the Coroutines dependencies
const val coroutines = "1.6.0-native-mt"
Remove: Pods.framework in: Folder named Pods
CocoaPods will not be installed: https://medium.com/p-society/cocoapods-on-apple-silicon-m1-computers-86e05aa10d3e
cd iosApp || exit arch -x86\_64 pod install