簡體   English   中英

在應用商店上傳應用時,Paytm 支付網關出現錯誤

[英]Getting error in Paytm Payment Gateway while uploading app on appstore

在我添加了 PaymentSDK Swift5 時,無法通過 swift 5.1 錯誤導入使用 Swift 5.0.1 編譯的獲取模塊 然后我嘗試了 PaymentSDK 5.1 框架在將應用程序上傳到 AppStore 時沒有收到此錯誤。 在開發模式下完美運行。

應用了這個解決方案

  1. https://github.com/Paytm-Payments/Paytm_iOS_App_Kit/issues/37#issuecomment-533982199
  2. https://github.com/Paytm-Payments/Paytm_iOS_App_Kit/issues/40#issuecomment-538249618

在此處輸入圖像描述 在此處輸入圖像描述

關於您正在使用模擬器框架上傳的錯誤明確提到,在上傳期間您的框架不應包含模擬器框架x86_64, i386 當您上傳時添加 shell 腳本,該腳本從發布版本中刪除該架構。 在構建階段腳本中使用此腳本。 移除模擬器架構

         Copy PaymentsSDK.framework in your Mac’s Downloads folder.
    
       // Open Terminal and move to the Downloads folder of your mac.
          cd /Users/<Your Mac's User Name Here>/Downloads
       //Run these commands to strip the x86_64 and i386 builds from your binary.
         
        lipo -remove x86_64 PaymentSDK.framework/PaymentSDK -o 
          PaymentSDK.framework/PaymentSDK
     
         lipo -remove i386 PaymentSDK.framework/PaymentSDK -o 
          PaymentSDK.framework/PaymentSDK
    
     //That’s it. Now you have stripped out all the unnecessary builds from your //binary.
    Now-Again. Copy Payments.sdk from your Downloads folder and replace it from the previous binary.

// Now, it will be validated successfully without any issues.

您可以為 iOS 集成最新的 SDK。 SDK 的 Github 鏈接是https://github.com/paytm/Paytm_iOS_All_in_One_SDK 其集成信息可在 Paytm 的開發者文檔中找到。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM