- ios: --target ios/ios-sim shorthands, iOS SDK auto-discovery,
#framework directive + BuildOptions.add_framework hook,
.app bundle + Info.plist + codesign (ad-hoc and real),
--codesign-identity/--provisioning-profile/--entitlements flags,
modules/std/{objc,uikit}.sx, dynamic class registration,
typed objc_msgSend cast pattern, UIApplicationMain handoff,
UIWindow scene attach. Runs on iPhone hardware.
- ir: silent .s64 defaults → loud diagnostics,
resolveReturnType infers from body, sub-byte int sizes match LLVM,
tuple type interning includes names, compile errors exit 1
- issue-NNNN convention: resolved bugs rename to focused features
- 50 regression tests passing
18 lines
723 B
Plaintext
18 lines
723 B
Plaintext
// UIKit framework bindings — iOS only.
|
|
//
|
|
// Consumers `#import "modules/std/uikit.sx";` and inherit the
|
|
// `#framework "UIKit"` link directive plus any C-API declarations exposed
|
|
// here. Obj-C class/method dispatch goes through `modules/std/objc.sx`
|
|
// which we re-import so users only need this one file.
|
|
|
|
#import "objc.sx";
|
|
|
|
#framework "UIKit";
|
|
|
|
// int UIApplicationMain(int argc, char *_Nullable argv[_Nonnull],
|
|
// NSString *_Nullable principalClassName,
|
|
// NSString *_Nullable delegateClassName);
|
|
//
|
|
// Blocks. Drives the iOS run loop. Normally never returns.
|
|
UIApplicationMain :: (argc: s32, argv: *void, principal_class: *void, delegate_class: *void) -> s32 #foreign;
|