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

[Correction] Missing Podfile entry #2

Closed
vshy108 opened this issue Aug 13, 2018 · 3 comments
Closed

[Correction] Missing Podfile entry #2

vshy108 opened this issue Aug 13, 2018 · 3 comments
Assignees
Labels
question Further information is requested by the issue / pr raiser

Comments

@vshy108
Copy link

vshy108 commented Aug 13, 2018

I need to add

pod 'GoogleMobileVision/TextDetector'

to PodFile so that it will download the necessary SDK file for ios build.

May be it should be included in the README.md file explanation? thanks

@ChrisTomAlx
Copy link
Collaborator

Hey @vshy108

The 'GoogleMobileVision/TextDetector' pod dependency is bundled along with the plugin in the plugin.xml. After install of the plugin you need to follow the following steps in iOS as mentioned in the readme.

  • Once the iOS platform is added in command line, change directory to where podfile is found. Example location :- (myapp/platforms/ios).
  • Make sure you have cocoapods installed then in command line do pod update.
  • Now open myapp.xcworkspace which is usually found in the same directory as the podfile, then build and run.

Note :- if you use myapp.xcodeproj to build and run, it will not work and it will show a linker error.

You followed the above steps and it did not work? Did you still have to add pod 'GoogleMobileVision/TextDetector' manually?

Cheers,
Chris
Neutrinos

@vshy108
Copy link
Author

vshy108 commented Aug 13, 2018

After I installed the plugin with Visual studio 2017 by opening designer view of config.xml of my project, PodFile is not created under ios folder. Hence I manually created new PodFile and fill in the dependency in my case.

The following line in plugin.xml will create the new PodFile if not found any?
<framework src="GoogleMobileVision/TextDetector" type="podspec" spec="~> 1.3.2"/>

@ChrisTomAlx
Copy link
Collaborator

Oh cool. If you are manually creating the podfile then you will have to add it. If you use cordova, then cordova will automatically add the podfile and all you have to do is pod update.

Anyhow thank you for raising this issue :)
I will reference this issue in the readme for other people who manually create their podfile.

Cheers and Have a nice day!,
Chris
Neutrinos

@ChrisTomAlx ChrisTomAlx self-assigned this Dec 28, 2018
@ChrisTomAlx ChrisTomAlx added the question Further information is requested by the issue / pr raiser label Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested by the issue / pr raiser
Projects
None yet
Development

No branches or pull requests

2 participants