Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'hello/Hello.h' file not found - Trying to build/run iOS gomobile Hello app

Tags:

xcode

I am building the gomobile Hello example app, but am running into the following problem: When trying to build and run the app after opening it in Xcode (7.1), I get the error 'hello/Hello.h' file not found' From what I can tell, Hello.h is in fact in the hello folder of the native directory.

Xcode Error Message

like image 688
hbd Avatar asked Oct 30 '22 15:10

hbd


1 Answers

Following this discussion on Github, it seems like this is due to a recent change in the way Xcode 7 updates paths for the headers.

The proposed solution is to check Copy items if needed when importing the framework:

enter image description here

I can confirm that this fixes the issue. But note that you would then need to re-import the framework every time you make changes and build the go code.

like image 99
Herman Schaaf Avatar answered Nov 15 '22 08:11

Herman Schaaf