Giter VIP home page Giter VIP logo

Comments (7)

mickeyreiss avatar mickeyreiss commented on May 26, 2024

Hmm... I'm curious if this is an issue with your CocoaPods integration.

  • Which versions of Xcode, Braintree-iOS and CocoaPods are you using?
  • Can you paste your Podfile?
  • Can you run through some of these troubleshooting tips and see if they help?

from braintree_ios.

Ankish avatar Ankish commented on May 26, 2024

Xcode- 5.1.1

In PodFile:
pod 'Braintree'.

Pods.xcconfig:

GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
GCC_TREAT_WARNINGS_AS_ERRORS = YES YES YES
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers" "${PODS_ROOT}/Headers/Braintree"
LIBRARY_SEARCH_PATHS = "$(PODS_ROOT)/Braintree/Braintree/Data/Braintree-Data" "$(PODS_ROOT)/Braintree/Braintree/PayPal/Braintree-PayPal/PayPalMobileSDK"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers" -isystem "${PODS_ROOT}/Headers/Braintree"
OTHER_LDFLAGS = -ObjC -ObjC -lDeviceCollectorLibrary -lPayPalMobile -lc++ -framework AVFoundation -framework CoreLocation -framework MessageUI -framework SystemConfiguration -framework UIKit
PODS_ROOT = ${SRCROOT}/Pods

Thanks for the troubleshooting steps. Will try that.

from braintree_ios.

Ankish avatar Ankish commented on May 26, 2024

I used : pod 'Braintree', '~> 3.0.0'

I created a simple project and checked the Link with libraries and changed with my actual project.

Followed the troubleshooting steps above and
From the project-target i removed the libpods.a or libpods-braintree.a.
Pods-target under the Pod project - libpods-braintree.a i have and not the libpods.a
Pods-Braintree target i removed both libpods-braintree.a and libpods.a.

This seems to work. Though it works now , i hope my settings are correct.

from braintree_ios.

Ankish avatar Ankish commented on May 26, 2024

Removing the libpods.a or libpods-braintree.a only made the errors hide. When i try to compile with braintree in my viewcontroller i get those errors again. Is there a Braintree service to support this ?

libpods.a or libpods-braintree.a are in red under frameworks.

Undefined symbols for architecture armv7:
"OBJC_CLASS$_PayPalConfiguration", referenced from:
objc-class-ref in libPods.a(BTClientToken+BTPayPal.o)
"_PayPalEnvironmentSandbox", referenced from:
-[BTClient(BTPayPal) btPayPal_applicationCorrelationId] in libPods.a(BTClient+BTPayPal.o)
"OBJC_CLASS$_PayPalFuturePaymentViewController", referenced from:
objc-class-ref in libPods.a(BTClient+BTPayPal.o)
"_PayPalEnvironmentProduction", referenced from:
-[BTClient(BTPayPal) btPayPal_preparePayPalMobileWithError:] in libPods.a(BTClient+BTPayPal.o)
-[BTClient(BTPayPal) btPayPal_applicationCorrelationId] in libPods.a(BTClient+BTPayPal.o)
"_PayPalEnvironmentNoNetwork", referenced from:
-[BTClient(BTPayPal) btPayPal_preparePayPalMobileWithError:] in libPods.a(BTClient+BTPayPal.o)
"OBJC_CLASS$_PayPalMobile", referenced from:
objc-class-ref in libPods.a(BTClient+BTPayPal.o)
"OBJC_CLASS$_DeviceCollectorSDK", referenced from:
objc-class-ref in libPods.a(BTData.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

from braintree_ios.

mickeyreiss avatar mickeyreiss commented on May 26, 2024

@Ankish I think this is sounding more like a specific issue with your app and integration. Can you please call or email our support team for more help?

If it turns out that there is a generally applicable problem with the SDK, please do to re-open this issue and post your findings here 😀

from braintree_ios.

Ankish avatar Ankish commented on May 26, 2024

i updated the pod gem:
Had problems in LD_FLAG headers , this fixed:
Go to your taget Build Settings -> Other linker flags -> double click . Add $(inherited) to a new line .

thanks a lot mickey

from braintree_ios.

mickeyreiss avatar mickeyreiss commented on May 26, 2024

Ahh yes...that is definitely a CocoaPods gotcha. Glad it worked out 🚀

from braintree_ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.