network-international / react-native-ngenius

Other
5 stars 8 forks source link

Build Failed When npm run ios on simulator. #22

Closed Diyaa-Gubarah closed 2 years ago

Diyaa-Gubarah commented 2 years ago

this error occurs when i try to run npm run ios , I don't have Apple Developer Account how to test in simulator.


Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_UChallengeParameters", referenced from:
      objc-class-ref in NISdk(ThreeDSTwoViewController.o)
  "_OBJC_CLASS_$_UConfigParameters", referenced from:
      objc-class-ref in NISdk(NISdk.o)
  "_OBJC_CLASS_$_UUiCustomization", referenced from:
      objc-class-ref in NISdk(NISdk.o)
  "_OBJC_CLASS_$_UDirectoryServer", referenced from:
      objc-class-ref in NISdk(NISdk.o)
  "_OBJC_CLASS_$_UThreeDS2ServiceImpl", referenced from:
      objc-class-ref in NISdk(PaymentViewController.o)
      objc-class-ref in NISdk(NISdk.o)
      objc-class-ref in NISdk(ThreeDSTwoViewController.o)
ld: symbol(s) not found for architecture x86_64
kareem-ali-abdelsalam commented 2 years ago

@mu1ex any updates regarding this issue ?

mu1ex commented 2 years ago

@kareem-ali-abdelsalam, the new version of the SDK cannot be used on simulator. Its a restriction of the EMV Sdk we use.

Diyaa-Gubarah commented 2 years ago

The Apply pay status is failed any idea?

I set all the requirements correctly.

mu1ex commented 2 years ago

Have you setup the certificates in NGenius portal

Diyaa-Gubarah commented 2 years ago

I did that could you please explain more about how I must do that, and if there's any setup required in xcode it self.

mu1ex commented 2 years ago

You will have to add the Apple Pay MID to your entitlements file

Diyaa-Gubarah commented 2 years ago

where I can find this entitlements file I already added Apple Pay using xcode and it's shows me all the MID and I select the one I want.

Could you please explain more.

Thanks.

Diyaa-Gubarah commented 2 years ago

do you mean like this:

<key>com.apple.developer.proximity-reader.payment.acceptance</key> <true/>