dyld:未加载库:@ rpath / Stripe.framework / Stripe

时间:2017-01-12 12:15:51

标签: ios iphone swift swift3 stripe-payments

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

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

  

dyld:未加载库:@ rpath / Stripe.framework / Stripe

     

参考:       / 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

     

原因:未找到图片

这是一段代码

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

1 个答案:

答案 0 :(得分:2)

转到项目选择常规并将框架添加到嵌入式二进制文件部分default