Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

[Xcode Version 11.5] Undefined symbol using NI4882.framework in OSX by Swift language

Solved!
Go to solution

I use the NI4882.framework, and add Bridging_Header file (#import "NI4882/ni4882.h"),

but I get two issues: Undefined bymbol : _ibeer/_ibsta.

 

I've been able to communicate with my device (Chroma 62015L) using the NIvisaic tool.

 

Please help me and thanks for any answers.

Sam

截圖 2020-09-02 下午3.16.27.png

截圖 2020-09-02 下午2.17.35.png截圖 2020-09-02 下午2.18.09.png

0 Kudos
Message 1 of 3
(1,418 Views)

I remove the Ibsta() & ERR variable, and compilation is done. (Any idea?)

and NOW, I get a runtime error...see the picture below.

Please help me again, Thanks you.

Sam

截圖 2020-09-02 下午10.10.10.png

0 Kudos
Message 2 of 3
(1,360 Views)
Solution
Accepted by topic author SamLin

I solved this question by removing the "TARGETS -> Signing & Capabilities -> App SandBox" in swift project.

 

Thanks,

Sam

0 Kudos
Message 3 of 3
(1,300 Views)