Check the Prepare and Build Bindings steps in the root directory.
Open the MoproKit/Example/MoproKit.xcworkspace
in Xcode.
Use command
+R
to execute a simulator.
Add the following settings after
MoproKit/Example/Pods/Target Support Files/MoproKit/MoproKit.debug.xcconfig
MoproKit/Example/Pods/Target Support Files/MoproKit/MoproKit.release.xcconfig
files
LIBRARY_SEARCH_PATHS=${SRCROOT}/../../Libs
OTHER_LDFLAGS=-lmopro_ffi
USER_HEADER_SEARCH_PATHS=${SRCROOT}/../../include
There are two ways to run tests for the example app:
-
Xcode Open the
MoproKit/Example/MoproKit.xcworkspace
in Xcode. Usecommand
+U
to run tests. -
CLI Run tests with command line:
cd MoproKit/Example xcodebuild test -scheme MoproKit-Example \ -workspace MoproKit.xcworkspace \ -destination "platform=iOS Simulator,OS=17.0.1,name=iPhone 15 Pro"
Check your simulator version and the OS with:
xcodebuild -showdestinations -workspace MoproKit.xcworkspace -scheme MoproKit-Example