objective c - PayPal integrated iOS 8 App -
i have downloaded , played github project paypal ios app. https://github.com/paypal/paypal-ios-sdk ran fine without errors. when seek link ios 8 swift project can load files , connect view controllers fine , believe bridge header file working fine. moved viewcontroller files sample app project , connected needed to. have client id , secret id working believe. when seek create futurepaymentviewcontroller :
- (ibaction)getuserauthorizationforfuturepayments:(id)sender { nslog(@"\n\n\nbegin getting user authorization\n\n\npaypal config:::: %@", self.paypalconfig); paypalfuturepaymentviewcontroller *futurepaymentviewcontroller = [[paypalfuturepaymentviewcontroller alloc] initwithconfiguration:self.paypalconfig delegate:self]; //breaks here when trying send config init. nslog(@"\n\n\nafter initializtion of paypal future payment view controller\n\n\n"); [self presentviewcontroller:futurepaymentviewcontroller animated:yes completion:nil]; nslog(@"after present"); }
error :
paypal config:::: <paypalconfiguration: 0x7fb23e212af0> 2014-10-12 16:31:38.979 project[2161:69146] -[paypalfuturepaymentviewcontroller paypalservicemanager]: unrecognized selector sent instance 0x7fb23e2207d0 2014-10-12 16:31:38.981 project[2161:69146] *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[paypalfuturepaymentviewcontroller paypalservicemanager]: unrecognized selector sent instance 0x7fb23e2207d0' *** first throw phone call stack: ( 0 corefoundation 0x00000001055bf3f5 __exceptionpreprocess + 165 1 libobjc.a.dylib 0x0000000105258bb7 objc_exception_throw + 45 2 corefoundation 0x00000001055c650d -[nsobject(nsobject) doesnotrecognizeselector:] + 205 3 corefoundation 0x000000010551e7fc ___forwarding___ + 988 4 corefoundation 0x000000010551e398 _cf_forwarding_prep_0 + 120 5 cutinlineswift 0x000000010262c0b1 -[paypalfuturepaymentviewcontroller initwithconfiguration:delegate:] + 361 6 cutinlineswift 0x00000001025d28de -[zzmainviewcontroller getuserauthorizationforfuturepayments:] + 190 7 uikit 0x00000001029639ee -[uiapplication sendaction:to:from:forevent:] + 75 8 uikit 0x0000000102a69bd0 -[uicontrol _sendactionsforevents:withevent:] + 467 9 uikit 0x0000000102a68f9f -[uicontrol touchesended:withevent:] + 522 10 uikit 0x00000001029a93b8 -[uiwindow _sendtouchesforevent:] + 735 11 uikit 0x00000001029a9ce3 -[uiwindow sendevent:] + 683 12 uikit 0x0000000102976ae1 -[uiapplication sendevent:] + 246 13 uikit 0x0000000102983bad _uiapplicationhandleeventfromqueueevent + 17370 14 uikit 0x000000010295f233 _uiapplicationhandleeventqueue + 1961 15 corefoundation 0x00000001054f4ad1 __cfrunloop_is_calling_out_to_a_source0_perform_function__ + 17 16 corefoundation 0x00000001054ea99d __cfrunloopdosources0 + 269 17 corefoundation 0x00000001054e9fd4 __cfrunlooprun + 868 18 corefoundation 0x00000001054e9a06 cfrunlooprunspecific + 470 19 graphicsservices 0x00000001071eb9f0 gseventrunmodal + 161 20 uikit 0x0000000102962550 uiapplicationmain + 1282 21 cutinlineswift 0x00000001025d093e top_level_code + 78 22 cutinlineswift 0x00000001025d097a main + 42 23 libdyld.dylib 0x0000000105f93145 start + 1 ) libc++abi.dylib: terminating uncaught exception of type nsexception
this should not breaking since no different sample project have no thought why is. please help me, give thanks you!
dave paypal here.
i believe problem solved step 3 of our integration instructions:
in project's build settings (in targets
section, not projects
section):
-lc++ -objc
other linker flags
also, please note step 1 of our sample code, indicates must phone call [paypalmobile initializewithclientidsforenvironments:]
initialize sdk, prior calling other methods.
ios objective-c paypal
No comments:
Post a Comment