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

Apple Mach-O Linker (id) Error #13

Closed
llanginger opened this issue Aug 25, 2017 · 4 comments
Closed

Apple Mach-O Linker (id) Error #13

llanginger opened this issue Aug 25, 2017 · 4 comments

Comments

@llanginger
Copy link

Lib specs:

react: 16.0.0-alpha.6
react-native: 0.44.2
react-native-openalpr: 1.0.6

Issue:

Hi there,

I'm sure that I'm missing something fairly obvious but I have tried 4 or 5 times now from scratch to get your library into my project and I consistently get the same error:

screen shot 2017-08-24 at 5 04 13 pm

I can successfully build and run the project in /Example and I have tried replicating everything I can think of from its setup but nothing so far has worked. I HAVE noticed a few differences that I do not know how to resolve (or if they're significant). On the left you will see the example project (that builds and runs) and on the right you will see the equivalent screen/section in my project where I see differences:

Screen Shots

screen shot 2017-08-24 at 4 49 30 pm

In the above SS, there is a folder in the Frameworks library called AssetsLibrary that does not appear in the instructions. Also the individual frameworks appear red, very peculiar.

screen shot 2017-08-24 at 4 50 20 pm

Once again in the Build Phases the references to the frameworks are visually very different and I'm not sure why this is or if it matters.

Guess:

When I import the frameworks from node_modules/react-native-openalpr/ios/Frameworks, nothing gets added to my Framework Search Paths. This strikes me as meaningful, especially with the above-mentioned visual differences I'm seeing.

Any help would be greatly appreciated!

@VvanGemert
Copy link

Hi llanginger,

I've had the same problem with compiling. I solved it by adding the following libraries:

  • CoreVideo.framework,
  • AssetsLibrary.framework
  • CoreMedia.framework

in 'Link with Libraries'.

I found the solution here:

https://stackoverflow.com/questions/23634940/opencv2-framework-not-compile-with-linker-flag-objc

@jqn
Copy link

jqn commented Dec 22, 2017

React Native 5.0
Mac OS

For me I ran into three different errors running this library. One I had to add manually:

  • create a Framework directory
  • $(PROJECT_DIR)/../node_modules/react-native-openalpr/ios/Frameworks to frameworks search path
  • Add
    -CoreVideo.framework,
    -AssetsLibrary.framework
    -CoreMedia.framework
    And finally update proptypes in the index.js file of this library

@jqn jqn mentioned this issue Jan 26, 2018
@smancebo
Copy link

smancebo commented Mar 18, 2019

Hi
go to this link and add all the frameworks listed here and add $(PROJECT_DIR)/../node_modules/react-native-openalpr/ios/Frameworks
to the Framework Search path (in debug and release)

works for me

@RobertSasak
Copy link
Owner

Seems to be resolved. Closing for now.

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

No branches or pull requests

5 participants