You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

iOS项目集成PayFort SDK时无法导入对应库的问题求助

Troubleshooting PayFort iOS SDK Import Issues

Hey there, sorry to hear you're hitting a snag while integrating the PayFort iOS SDK—let's break down the possible fixes to get you back on track:

  • Double-check your SDK file imports
    Make sure you've dragged all the required .framework files from the PayFort SDK package into your project. When importing, don't forget to tick the "Copy items if needed" box to ensure the files are actually copied into your project directory, not just referenced. Then head to Target > General > Frameworks, Libraries, and Embedded Content to confirm each framework is set to either Embed & Sign or the appropriate status as per the SDK docs.

  • Verify Build Settings configurations

    1. Go to Target > Build Settings > Framework Search Paths and add the directory where your PayFort SDK frameworks are stored. Using a recursive path like $(PROJECT_DIR)/YourSDKDirectory/** can help Xcode locate the files correctly.
    2. Ensure the Allow Non-modular Includes in Framework Modules option is set to YES—this is a common fix for older SDKs that don't fully support modular imports.
  • Fix your import syntax
    If you're working in a Swift project, confirm you've set up a bridging header (if needed) and added the PayFort umbrella header import: #import <PayFortSDK/PayFortSDK.h>. For pure Objective-C projects, double-check that your import statement matches the docs—sometimes typos or incorrect framework naming can block proper imports.

  • Clear cache and rebuild
    Xcode's cached data can cause weird import errors. Try:

    1. Pressing Cmd + Shift + K to clean the project
    2. Deleting your Derived Data folder (found in Xcode > Preferences > Locations > Derived Data)
    3. Rebuilding the project with Cmd + B
  • Check version compatibility
    Ensure your Xcode version is compatible with the v2.8 PayFort SDK. Older Xcode versions might not support the framework's syntax or features, so updating Xcode (if possible) could resolve the issue.


内容的提问来源于stack exchange,提问作者mrs.bassim

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 04:14:28