crux
crux copied to clipboard
Example iOS configuration not valid for TestFlight / deployment
I recently got an Crux iOS app into TestFlight and noticed that our example configurations need a few tweaks to pass the app validation stage
uniffi-bingenbinary needs to be excluded from sources. Withxcodegenthat looks as followssettings: OTHER_LDFLAGS: [-w] SWIFT_OBJC_BRIDGING_HEADER: generated/sharedFFI.h ENABLE_USER_SCRIPT_SANDBOXING: NO "EXCLUDED_SOURCE_FILE_NAMES[arch=*]": "uniffi-bindgen"- In the build script which generates the FFI, we skip the step in an
indexbuildphase, but we also need to skip it in theinstallbuildphase, because the paths are all different, so the build fails, and it shouldn't run anyway - Step 1 might cover this, not sure, but we should generated the
sharedXcode project withcargo xcode --skip-install, so that any binaries don't get bundled in the deployment archive (which makes it invalid as an app archive).