iOS Guide¶
Basic steps to build and run an iOS project generated by pn
.
What gets generated¶
pn run ios
unpacks the bundled iOS template (Swift + PythonKit, with optional Rubicon-ObjC) into build/ios/ios_template
and copies your app/
under build/ios/app/
for later integration steps. The template zip is bundled with the package, so no network is required to scaffold.
The default ViewController.swift
initializes PythonKit, prints the Python version, and attempts to import rubicon.objc
if present.
Run / Prepare¶
pn run ios
Or prepare without building:
pn run ios --prepare-only
You can then open build/ios/ios_template/ios_template.xcodeproj
in Xcode.
Clean¶
Remove the build directory safely:
pn clean
Notes¶
- Building and running for Simulator via the CLI is best-effort. Opening the generated project in Xcode is recommended for iterative development.