Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile: building bind/hello example meets with an error: "hello/Hello.h file not found" #13441

Closed
liudanking opened this issue Dec 1, 2015 · 4 comments

Comments

Projects
None yet
5 participants
@liudanking
Copy link

commented Dec 1, 2015

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.

error in Xcode and the file it's in

@liudanking liudanking changed the title x/mobile: building bind/hello example meet with a error: "hello/Hello.h file not found" x/mobile: building bind/hello example meets with an error: "hello/Hello.h file not found" Dec 1, 2015

@hyangah hyangah added this to the Unreleased milestone Dec 1, 2015

@hyangah

This comment has been minimized.

Copy link
Contributor

commented Dec 1, 2015

/cc @crawshaw @rakyll I didn't upgrade my xcode yet. can any of you take a look?

@hbd

This comment has been minimized.

Copy link

commented Dec 7, 2015

I'm also getting this error. Posted it to SE a couple weeks ago with no luck.

@rakyll rakyll self-assigned this Dec 10, 2015

@rakyll

This comment has been minimized.

Copy link
Member

commented Dec 10, 2015

Xcode 7 doesn't seem to be updating paths to search for the headers automatically the way previous Xcode versions did. If you choose "Copy items if needed" when you are dragging the bundle in the project,

#import  <Hello/Hello.h>
# or
#import "Hello/Hello.h"

works.

I think there is nothing we can do other than updating the wiki with additional pointers.

@rakyll

This comment has been minimized.

@rakyll rakyll closed this Feb 13, 2016

@golang golang locked and limited conversation to collaborators Feb 28, 2017

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.