SwiftMix: properly export SwiftMain method
This commit is contained in:
parent
cab5471a7b
commit
b7b66919a3
@ -3,3 +3,4 @@ project(SwiftMix C Swift)
|
||||
|
||||
add_executable(SwiftMix CMain.c ObjCMain.m SwiftMain.swift ObjC-Swift.h)
|
||||
set_property(TARGET SwiftMix PROPERTY XCODE_ATTRIBUTE_SWIFT_OBJC_BRIDGING_HEADER "ObjC-Swift.h")
|
||||
target_compile_options(SwiftMix PRIVATE "$<$<COMPILE_LANGUAGE:C>:-Werror=objc-method-access>")
|
||||
|
@ -1,7 +1,7 @@
|
||||
import Foundation
|
||||
|
||||
@objc class SwiftMainClass : NSObject {
|
||||
class func SwiftMain() -> Int32 {
|
||||
@objc class func SwiftMain() -> Int32 {
|
||||
dump("Hello World!");
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user