General questions

Answered

Error when running GetStartedSwift example project

Xcode Error: 'iink/graphics/IINKIPath.h' file not found

Xcode Version: 10.2.1

Followed the https://developer.myscript.com/getting-started/ios guide and could not successfully run the project. I've read the solutions about this error on the forum but could not fix this problem. Trying to find a solution to run this example project.


Best Answer

Dear Christopher,


it should be located as follows for the GetStarted:

testmacs-Mac-mini-2:GetStarted testmac$ find . -name "IINKIPath.h"

./Pods/Headers/Private/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/Headers/Public/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/MyScriptInteractiveInk-Runtime/include/iink/graphics/IINKIPath.h


And for the GetStartedSwift:

testmacs-Mac-mini-2:GetStarted testmac$ cd ../GetStartedSwift/

testmacs-Mac-mini-2:GetStartedSwift testmac$ find . -name "IINKIPath.h"

./Pods/Headers/Private/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/Headers/Public/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/MyScriptInteractiveInk-Runtime/include/iink/graphics/IINKIPath.h


Can you please check this?


Best regards,


Olivier


Dear Christopher,


Thank you for contacting us.


This error message is likely to occur when the UIReferenceImplementation has not been downloaded properly.


You should ensure you run the "pod Install", as indicated in our documentation: https://developer.myscript.com/docs/interactive-ink/1.3/ios/fundamentals/get-started/#playing-with-the-get-started-example


Best regards,


Olivier

Hi Olivier,


I have the IInkUIReferenceImplementation.h file dowloaded and located in IInkUIReferenceImplementation > Classes > Header > IInkUIReferenceImplementation.h.

The IInkUIReferenceImplementation.h code is attached for reference. 

// Copyright MyScript. All right reserved.

#ifndef IInkUIRefImpl_h
#define IInkUIRefImpl_h

#import <iink/IINK.h>

#import <IInkUIReferenceImplementation/Helper.h>
#import <IInkUIReferenceImplementation/IInkUIRefImplUtils.h>
#import <IInkUIReferenceImplementation/NSAttributedString+Helper.h>
#import <IInkUIReferenceImplementation/NSFileManager+Additions.h>
#import <IInkUIReferenceImplementation/UIfont+Helper.h>
#import <IInkUIReferenceImplementation/UIFont+Traits.h>

#import <IInkUIReferenceImplementation/Canvas.h>
#import <IInkUIReferenceImplementation/FontMetricsProvider.h>
#import <IInkUIReferenceImplementation/ImageDrawer.h>
#import <IInkUIReferenceImplementation/InputView.h>
#import <IInkUIReferenceImplementation/ImageLoader.h>

#import <IInkUIReferenceImplementation/RenderView.h>
#import <IInkUIReferenceImplementation/InputView.h>

#import <IInkUIReferenceImplementation/DisplayViewController.h>
#import <IInkUIReferenceImplementation/EditorViewController.h>

#endif /* IInkUIRefImpl_h */

Is there anything apparently wrong with the code or file location? Also, is there anything else that could cause this issue?


Thanks for your help,

Christopher

 

Answer

Dear Christopher,


it should be located as follows for the GetStarted:

testmacs-Mac-mini-2:GetStarted testmac$ find . -name "IINKIPath.h"

./Pods/Headers/Private/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/Headers/Public/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/MyScriptInteractiveInk-Runtime/include/iink/graphics/IINKIPath.h


And for the GetStartedSwift:

testmacs-Mac-mini-2:GetStarted testmac$ cd ../GetStartedSwift/

testmacs-Mac-mini-2:GetStartedSwift testmac$ find . -name "IINKIPath.h"

./Pods/Headers/Private/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/Headers/Public/MyScriptInteractiveInk-Runtime/iink/graphics/IINKIPath.h

./Pods/MyScriptInteractiveInk-Runtime/include/iink/graphics/IINKIPath.h


Can you please check this?


Best regards,


Olivier