Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

M1 mac helloswift sample make success but make runit failed #765

Open
@jingliancui

Description

@jingliancui

Mac M1

Xcode
Version 12.5.1 (12E507)

make command log:

Last login: Thu Sep  9 20:05:23 on ttys001
ericcui@ericdeMacBook-Pro helloswift % make
/usr/bin/swiftc -sdk `xcrun --show-sdk-path` -emit-module -emit-library -enable-library-evolution -emit-module-interface -module-name HelloMod *.swift
../../binding-tools-for-swift --swift-bin-path /usr/bin --swift-lib-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift --retain-swift-wrappers -o . -C . -module-name HelloMod 
mcs -nowarn:CS0169 -lib:../lib -r:SwiftRuntimeLibrary.Mac -lib:. *.cs -out:HelloMod.exe
ericcui@ericdeMacBook-Pro helloswift % 

make runit command log:

ericcui@ericdeMacBook-Pro helloswift % make runit

Unhandled Exception:
System.DllNotFoundException: libXamWrapping.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) HelloMod.NativeMethodsForHello.PImethod_HelloXamarin_HelloddoHello()
  at HelloMod.Hello.DoHello () [0x00000] in <9cd04eb66cdc447189b263a0867ace33>:0 
  at Tester.MainClass.Main (System.String[] args) [0x00000] in <9cd04eb66cdc447189b263a0867ace33>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: libXamWrapping.dylib assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) HelloMod.NativeMethodsForHello.PImethod_HelloXamarin_HelloddoHello()
  at HelloMod.Hello.DoHello () [0x00000] in <9cd04eb66cdc447189b263a0867ace33>:0 
  at Tester.MainClass.Main (System.String[] args) [0x00000] in <9cd04eb66cdc447189b263a0867ace33>:0 
make: *** [runit] Error 1
ericcui@ericdeMacBook-Pro helloswift % 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions