Interactive Ink

How to add iink to swift project manually

Hi, 

        I find a topic here:  https://developer-support.myscript.com/support/discussions/topics/16000022274

"Yes, you can manually add iink SDK to your project. First, I advise you to use CocoaPods with our GetStarted example (https://developer.myscript.com/getting-started/ios) so that the libraries and headers are properly downloaded to your computer.
Then, you can get the static libraries and headers under the "Pods" repository and copy them to your project. You may also want to include the files from the UI Reference Implementation that are available in the Github repository.
Finally, please ensure that you copy the linker flags from the xconfig parameters in the pod to your project.

Best regards,
Thomas"



        1、I have successfully run the "GetStartedSwift" project on my iPad.  ( I have the right certificate and I can write and convert).

        2、I create a new single view application "test"

        3、I follow the topic above ,add the folders (include the IInkUIReferenceImplementation)to my project and select the "Copy items if needed"

     

image

               4、because of the folder "Heads" make the App installation failed ,so I deleted it

image

               5、I change all the import names 

image



            finally I want to link the libraries, their icons are not normal , and after I link them, here is the problem:


image



          I want to know how to resolve it ,and are  there  anything wrong  in the above steps? by the way I am not understand the last sentence in your topic:"Finally, please ensure that you copy the linker flags from the xconfig parameters in the pod to your project"

 


Hi,

         The reason for adding manually is :

          we are making a swift project, and if use iink, it seems like we have to set the podfile like below:

image

   it is one of our app have already been on apple store. we set the " use_frameworks!(false)" and  "use_modular_headers!",  otherwise iink or another pod like AliyunOSSios may not work properlly.


   now we're making another app ,but it bother me two days ,after add iink and make the above settings ,it still can't run by one of the pod.

   Am I doing something wrong with the pod file ? If you can help me to resolve the problem, it is not necessary to add manually

Dear Qian Bin,


thank you for contacting us.


Can you confirm you are using the latest release of the iink SDK?


Indeed, normally our latest releases contain bitcode, so we are surprised you are getting this message.


Best regards,


Olivier

Login or Signup to post a comment