Level : WORDPRESS BOOK LINKEDIN PATENT Send Mail 동냥하기 hajunho.com

main.c -> main.swift

HJH IT Logs / / 2022. 5. 30. 15:49
반응형

#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

 

반응형

'HJH IT Logs' 카테고리의 다른 글

[WEB] 화면 캡쳐해서 PDF 로 뽑기.  (0) 2023.03.28
유니콘 오픈소스  (0) 2022.10.22
왠지 플러그인 잘 만드는 곳 같아...  (0) 2022.05.26
Package Dependencies  (0) 2022.04.25
handlebars.js  (0) 2022.04.13
  • 네이버 블러그 공유하기
  • 네이버 밴드에 공유하기
  • 페이스북 공유하기
  • 카카오스토리 공유하기