Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Cannot request permissions to integrate venmo #61

Closed
sudov opened this issue Feb 13, 2015 · 7 comments
Closed

Cannot request permissions to integrate venmo #61

sudov opened this issue Feb 13, 2015 · 7 comments

Comments

@sudov
Copy link

sudov commented Feb 13, 2015

So I have the following code in my view controller (SWIFT)

Venmo.sharedInstance().requestPermissions([VENPermissionMakePayments,VENPermissionAccessProfile], withCompletionHandler: { (Bool success, NSError error) -> Void in
if (success) {
println(":)")
}
else {
println(":(")
}
})

This results in an 3 errors as below:

  1. "_VENPermissionAccessProfile", referenced from: _TFC8SplitPea24VenmoLoginViewController11viewDidLoadfS0_FT_T in VenmoLoginViewController.o

  2. "_VENPermissionMakePayments", referenced from: _TFC8SplitPea24VenmoLoginViewController11viewDidLoadfS0_FT_T in VenmoLoginViewController.o

  3. clang: error: linker command failed with exit code 1 (use -v to see invocation)

How does one interpret these? The code only shows errors when i try to run (auto-compile is on in my xcode) and shows no errors when the snippet provided above is commented out. This view controller is connected to a blank view controller in the storyboard if that information helps.

@sudov
Copy link
Author

sudov commented Feb 13, 2015

Any takers?

@sudov
Copy link
Author

sudov commented Feb 13, 2015

Had to move forward with my project so used the Objective-C you guys provided with a bridging header. Could someone post a fix if they figure this error out?

@sanjams2
Copy link

I am having the same issue.
Was this ever resolved

@sudov
Copy link
Author

sudov commented Feb 17, 2015

No I don't think so, I was hoping one of the devs had an idea

@eliperkins
Copy link

It seems like either Cocoapods or Swift doesn't like the permissions constants that are defined in VENPermssionConstants.h. You should be able to get around it for now by using the strings directly rather than the constants.

So in the case of [VENPermissionMakePayments,VENPermissionAccessProfile], just use ["make_payments", "access_profile"] instead.

Pull requests to fix this would be welcome!

@sanjams2
Copy link

Thanks a ton. Tried dozens of things to do with testing. This finally works.

@sudov
Copy link
Author

sudov commented Feb 18, 2015

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants