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

Build error #16

Closed
bilalghouri opened this issue May 25, 2020 · 2 comments
Closed

Build error #16

bilalghouri opened this issue May 25, 2020 · 2 comments
Labels
question Further information is requested

Comments

@bilalghouri
Copy link

Undefined symbols for architecture x86_64:
"_idevice_new_with_options", referenced from:
_developerImageIsMountedForDevice in deviceimagemounter.o
_mountImageForDevice in deviceimagemounter.o
_pairDevice in devicepair.o
_resetLocation in devicelocation.o
_sendLocation in devicelocation.o
_deviceProductVersion in deviceinfo.o
_deviceName in deviceinfo.o
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

I've linked the latest libraries as well, used brew install --HEAD

@Schlaubischlump
Copy link
Owner

Schlaubischlump commented May 25, 2020

There is something wrong with your libimobiledevice headers. If have seen this error before if your libimobiledevice version is outdated. Maybe you installed the correct version with homebrew, but included the wrong headers?

Edit: Maybe the headers in libimobiledevice changed. In this case it wouldn‘t be your fault. I will check later and update this comment.

Edit2: I used the most recent libimobiledevice version and it is working. That means there is something wrong with your setup.

To get the latest libimobiledevice working you need to checkout the latest HEAD for libplist and libusbmuxd. I checked out the following HEADs:

libplist: HEAD-66d2bb6
libusbmuxd: HEAD-5364a1b
libimobiledevice: HEAD-4331c3c_6

Make sure that your configuration looks like this:

Header search path:
Screenshot 2020-05-26 at 12 04 13

Library search path:
Screenshot 2020-05-26 at 12 04 20

Linked libraries:
Screenshot 2020-05-26 at 12 07 14

@Schlaubischlump Schlaubischlump added the question Further information is requested label May 27, 2020
@Schlaubischlump
Copy link
Owner

A new version of libimobiledevice is available on homebrew. If you install the latest version and download the prebuild binary from the github releases it should work.

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

No branches or pull requests

2 participants