Skip to content

fix xcode 9 build error#7

Open
ohroy wants to merge 2 commits intoJesseVelden:masterfrom
ohroy:master
Open

fix xcode 9 build error#7
ohroy wants to merge 2 commits intoJesseVelden:masterfrom
ohroy:master

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.

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.

2 participants