main.c -> main.swift
#import <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
import UIKit
autoreleasepool {
UIApplicationMain(Process.argc, Process.unsafeArgv, nil, NSStringFromClass(AppDelegate.self))
}
UIApplicationMain(CommandLine.argc,
UnsafeMutableRawPointer(CommandLine.unsafeArgv).bindMemory(to: UnsafeMutablePointer<Int8>.self, capacity: Int(CommandLine.argc)), nil, NSStringFromClass(AppDelegate.self))
MAKING bridging header file
#import "AppDelegate.h"
//:configuration = Debug
SWIFT_OBJC_BRIDGING_HEADER = migrating/-Bridging-Header.h
//:configuration = Distribution
SWIFT_OBJC_BRIDGING_HEADER = migrating/-Bridging-Header.h
//:configuration = Release
SWIFT_OBJC_BRIDGING_HEADER = migrating/-Bridging-Header.h
//:completeSettings = some
SWIFT_OBJC_BRIDGING_HEADER
error: using bridging headers with module interfaces is unsupported
//:configuration = Debug
BUILD_LIBRARY_FOR_DISTRIBUTION = NO
//:configuration = Distribution
BUILD_LIBRARY_FOR_DISTRIBUTION = NO
//:configuration = Release
BUILD_LIBRARY_FOR_DISTRIBUTION = NO
//:completeSettings = some
BUILD_LIBRARY_FOR_DISTRIBUTION