ios - dyld : Library not loaded: @rpath/Stripe. 框架/Stripe

标签 ios iphone swift swift3 stripe-payments

我正在尝试在我的 iOS 应用程序中实现 Stripe Payment Gateway。这是在 Xcode 8.2 和 10.2 模拟器上。

我的应用程序构建成功。但在构建之后,它说。

dyld: Library not loaded: @rpath/Stripe.framework/Stripe

Referenced from: /Users/user/Library/Developer/CoreSimulator/Devices/D27A4EC3-3B8A-4BBC-AB30-E9313AD95E1E/data/Containers/Bundle/Application/225274C8-EB99-476A-88A3-6F9981948220/Test App.app/Test App

Reason: image not found

这是一些代码

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
    registerForPushNotifications(application)
    spinnerInitialization();
    //STRIPE CONFIGURATION 
    Stripe.setDefaultPublishableKey("pk_test_YdACg6uENGmWrSWwAy00gWUx")
   return true
}

最佳答案

转到项目,选择“常规”并将您的框架添加到“嵌入式二进制文件”部分 enter image description here

关于ios - dyld : Library not loaded: @rpath/Stripe. 框架/Stripe ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41613019/

相关文章:

iphone - 创建具有透明背景色的图层

iphone - 如何围绕对角线旋转 CALayer?

iphone - Core Data iPhone 中的主键行为

ios - 当嵌入式 Controller 的 View 高度约束更改时,容器 View 大小不会更改

objective-c - WatchKit 中 UIApplication.sharedApplication().delegate 的等价物是什么?

ios - HTTP POST 函数

ios - 什么时候取消我自己作为我的 key 的观察者是非法的?

ios - 使 UIImage 在@IB_Designable 上的新位置重绘

ios - 如何使用 Objective C 增加 UItableView 中的 UIView 高度?

ios - 无法播放声音 : application crashes