Closed mattmook closed 3 years ago
hi! here my steps for local development:
# clone repo
git clone git@github.com:icerockdev/moko-kswift.git
cd moko-kswift
# generate podspec files for cocopods intergration. with integration will be generated swift files for cocoapod
./gradlew kSwiftmpp_library_podsPodspec
./gradlew kSwiftMultiPlatformLibraryPodspec
# go to ios dir
cd sample/ios-app
# install pods
pod install
# now we can open xcworkspace and build ios project
open ios-app.xcworkspace
# or run xcodebuild
xcodebuild -scheme ios-app -workspace ios-app.xcworkspace test -destination "platform=iOS Simulator,name=iPhone 12 mini"
xcodebuild -scheme pods-test -workspace ios-app.xcworkspace test -destination "platform=iOS Simulator,name=iPhone 12 mini"
by this steps you should got correct setup.
i add this steps into readme
Thanks @Alex009 the new instructions work like a treat
When opening the iOS workspace for the first time, you see the following errors:
It would be useful to have better documentation around getting the sample compiling, as this error can easily be fixed by running
pod install
.The next issue I hit is:
This occurs regardless of running
./gradlew build