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

Venmo touch compile error #27

Closed
kiddomk opened this issue Feb 25, 2014 · 9 comments
Closed

Venmo touch compile error #27

kiddomk opened this issue Feb 25, 2014 · 9 comments

Comments

@kiddomk
Copy link

kiddomk commented Feb 25, 2014

I have successfully installed braintree ios sdk using cocoapod and It was compiled fine.
However, when I initVTClient in my appdelegate.m file. I was getting compiling error:
Undefined symbols for architecture i386:
"OBJC_CLASS$_VTClient", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

and I couldn't find any solutions online at all. any tips?

@kiddomk
Copy link
Author

kiddomk commented Feb 25, 2014

looks like i need to add VenmoTouch.framework into my target->Link Binary with Libraries.
then what's the point of using cocoapods

@mickeyreiss
Copy link
Contributor

Make sure you verify which target CocoaPods is integrating with. There are a number of patterns for specifying this, such as target "name" do ... end and link_with.

See here for more details: http://guides.cocoapods.org/syntax/podfile.html#link_with

@kiddomk
Copy link
Author

kiddomk commented Feb 26, 2014

Thanks for the reply. I do have multiple targets. and i have tried to include link_with in my podfile, but it still didn't work.

@mickeyreiss
Copy link
Contributor

@kiddomk Can you post some of the related code on gist and/or send screenshots, so we can try to understand your problem further?

In particular: Podfile, Podfile.lock and screenshots of your build settings and cocoapods integration in Xcode.

@kiddomk
Copy link
Author

kiddomk commented Feb 26, 2014

Hi Mickey,
Thanks for looking out for me.
Here is my podfile, podfile.lock and some screenshots.

Podfile:
platform :ios, '6.1'
link_with 'thediamondstore', 'Poq1', 'meli-melo'
.....
pod 'Braintree', :git => 'https://github.com/braintree/braintree_ios.git'
....

Podfile.lock:
PODS:

  • AFNetworking (1.3.3)
  • AFOAuth1Client (0.3.3):
    • AFNetworking (~> 1.3)
  • AsyncImageView (1.5.1)
  • Braintree (2.2.7)
  • Facebook-iOS-SDK (3.12.0)
  • iRate (1.9.3)
  • Mixpanel (2.3.2)
  • PayPal-iOS-SDK (1.4.6)
  • SwipeView (1.3)
  • ZXingObjC (2.2.3)

DEPENDENCIES:

  • AFNetworking (~> 1.3.1)
  • AFOAuth1Client
  • AsyncImageView
  • Braintree (from https://github.com/braintree/braintree_ios.git)
  • Facebook-iOS-SDK
  • iRate
  • Mixpanel
  • PayPal-iOS-SDK
  • SwipeView
  • ZXingObjC

EXTERNAL SOURCES:
Braintree:
:git: https://github.com/braintree/braintree_ios.git

SPEC CHECKSUMS:
AFNetworking: 61fdd49e2ffe6380378df37b3b6e70630bb9dd66
AFOAuth1Client: 8b06e54087732068e19c4efcd7bed5d74bc9538a
AsyncImageView: 686febb2b2a923353ede67c529d257498059852d
Braintree: a7b8b6cdefe1a98c4a33b9b4185b0669d6bdb0bc
Facebook-iOS-SDK: c09f7d80db5c48170ff834bc03ebe774c49d1f5b
iRate: 99aef520b335a1eb4a14a8d9ba5e8db4e1d95bbe
Mixpanel: ddd79df92245a14d2b3064544d1e9ff037d8ac3a
PayPal-iOS-SDK: 5f9fe4e87074b2a8e00b4a213a25b6c25f358545
SwipeView: 9533067753d80f15049f70cf903ef7980f79acf2
ZXingObjC: 352024760388de6b6241d34844fac59f2a1a6c68

COCOAPODS: 0.29.0

Many thanks

On Wed, Feb 26, 2014 at 7:41 PM, Mickey Reiss notifications@github.comwrote:

@kiddomk https://github.com/kiddomk Can you post some of the related
code on gist and/or send screenshots, so we can try to understand your
problem further?

In particular: Podfile, Podfile.lock and screenshots of your build
settings and cocoapods integration in Xcode.

Reply to this email directly or view it on GitHubhttps://github.com//issues/27#issuecomment-36167399
.

@kiddomk
Copy link
Author

kiddomk commented Feb 26, 2014

screen shot 2014-02-26 at 19 48 59
screen shot 2014-02-26 at 19 49 25
screen shot 2014-02-26 at 19 51 27

@mickeyreiss
Copy link
Contributor

@kiddomk Are you still having trouble? Our logs are showing that you made a successful sandbox Venmo Touch call about 4 hours ago.

As far as your cocoapods configurations go, it looks like things are ok. I'm curious if maybe libPods.a in each of your targets' Build Phases is pointing to the wrong file. Can you re-add libPods.a in build phases from the Pods>Products folder?

I'm also curious why you are specifying the :git => repository in your Podfile. Braintree should be listed in CocoaPods, and I would expect you to be able to use the line pod "Braintree" without specifying a specific git repo.

@mickeyreiss mickeyreiss reopened this Feb 27, 2014
@kiddomk
Copy link
Author

kiddomk commented Mar 10, 2014

@mickeyreiss I was manually adding the resources lib into the project at the meantime. that's why you were seeing my calls.

I have double checked libPods.a and it was getting correctly.

the reason why I was specifying the :git=> repository is because it says so on your documentation page: https://www.braintreepayments.com/docs/ios/guide/ios_installation#cocoapods

In the end, i was able to compile by adding those flags:
screen shot 2014-03-10 at 17 55 00

@burnto
Copy link
Contributor

burnto commented Dec 1, 2014

We are focusing our efforts on 3.x ("v.zero").

@burnto burnto closed this as completed Dec 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants