#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

 

'{3D} 가상 세계' 카테고리의 다른 글

클레이튼 핀시아 통합  (0) 2024.01.16
유니콘 오픈소스  (0) 2022.10.22
File System Basics  (0) 2022.05.26
Package Dependencies  (0) 2022.04.25
Xcode shortcuts for VS code  (0) 2022.03.07

+ Recent posts