I integrated the math sdk inside a fresh swift project. I configure the MAWMathViewController like this:
let resources = [math-ak.res, math-grm-maw.res] let a = NSData(bytes: myCertificate.bytes, length: myCertificate.length) mathViewController?.configureWithResources(resources, certificate: a)
But i got an error when compiling
Undefined symbols for architecture i386: _myCertificate_BYTES, referenced from: _myCertificate in ViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
But an important point: if I'm deleting the configure code, there is no error.
p.s I have a bridging header file and I can see MAWMathViewController without a problem.
Can you help?
Best Answer
d
donodare
said
over 5 years ago
Thank you.
Now it is working.
This is the solution I have:
let MyScriptBytes : [CChar] = [1, 2,...] let certificateAsData = NSData(bytes: MyScriptBytes, length: MyScriptBytes.count)
donodare
Hello,
I integrated the math sdk inside a fresh swift project.
I configure the MAWMathViewController like this:
let resources = [math-ak.res, math-grm-maw.res]
let a = NSData(bytes: myCertificate.bytes, length: myCertificate.length)
mathViewController?.configureWithResources(resources, certificate: a)
But i got an error when compiling
Undefined symbols for architecture i386:
_myCertificate_BYTES, referenced from:
_myCertificate in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
But an important point: if I'm deleting the configure code, there is no error.
p.s I have a bridging header file and I can see MAWMathViewController without a problem.
Can you help?
Thank you.
Now it is working.
This is the solution I have:
let MyScriptBytes : [CChar] = [1, 2,...]
let certificateAsData = NSData(bytes: MyScriptBytes, length: MyScriptBytes.count)
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstDeleted Agent
Thanks for your error report.
There is no specific guide for swift code. Other developers reported us some issues and the related posts may help you:
This thread about single line widget may help you as well:http://developer-support.myscript.com/support/discussions/topics/16000007706
or:
https://developer-support.myscript.com/support/search/topics?term=swift
Best regards
donodare
Thank you.
Now it is working.
This is the solution I have:
let MyScriptBytes : [CChar] = [1, 2,...]
let certificateAsData = NSData(bytes: MyScriptBytes, length: MyScriptBytes.count)
Deleted Agent
Thanks for your feedback!