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

fix xcode 9 build error #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fix xcode 9 build error #7

wants to merge 2 commits into from

Conversation

ohroy
Copy link

@ohroy ohroy commented Mar 3, 2018

ld: framework not found MobileDevice
clang: error: linker command failed with exit code 1 (use -v to see invocation)

xcode9 can't link the private framework,even it exist.

Makefile Outdated
@@ -1,6 +1,6 @@
all:
@echo "Making deviceconsole..."
@$(CC) -O3 main.c tail.c -o deviceconsole -F/System/Library/PrivateFrameworks/ -framework MobileDevice -framework CoreFoundation
@$(CC) -O3 main.c tail.c -o deviceconsole -F./f/ -framework MobileDevice -framework CoreFoundation
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a default folder. /System/Library/PrivateFrameworks/ should work though

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because xcode9 can't link to /System/Library/PrivateFrameworks/,I had built it and get a error

ld: framework not found MobileDevice
clang: error: linker command failed with exit code 1 (use -v to see invocation)

so ,I use a soft-link to fix this.
do you have test on Xcode 9?

@JesseVelden
Copy link
Owner

I simply do not understand, where you got the ./f folder from (:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants