条带集成错误Xcode 6.2

时间:2021-10-18 23:21:58

To be specific i get this error when i build my project after adding the stripe framework.The project is for the iOS platform.

具体来说,我在添加条带框架后构建项目时会出现此错误。该项目适用于iOS平台。

I have all the standard architectures added to my build settings namely armv7,armv7s. This is the error logged,

我将所有标准体系结构添加到我的构建设置中,即armv7,armv7s。这是记录的错误,

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_STPAPIClient", referenced from:
      objc-class-ref in PlaceOrderViewController.o

After this error came i added arm64 also. I got error from this class alone as i'm calling a method from STPAPIClient.h in the Stripe framework.I have tried everywhere on the internet including stack and found nothing that could solve the issue.Hope someone can provide insights as to why this is occurring.

出现此错误后,我也添加了arm64。我从这个类中得到了错误,因为我在Stripe框架中从STPAPIClient.h调用了一个方法。我在互联网上的任何地方都尝试过,包括堆栈,没有找到任何可以解决问题的方法。希望有人可以提供有关为什么这样做的见解正在发生。

1 个解决方案

#1


Okay so the solution for me was to copy the entire stripe project, stripe.xcodeproj into my project. This would only bring that file so to bring all the classes in stripe project I copied the stripe workspace,stripe.xcworkspace into my project folder.

好的,我的解决方案是将整个条带项目stripe.xcodeproj复制到我的项目中。这只会带来该文件,以便将条带项目中的所有类复制到条带工作区,stripe.xcworkspace到我的项目文件夹中。

This solved all architecture related issues.

这解决了所有架构相关的问题。

#1


Okay so the solution for me was to copy the entire stripe project, stripe.xcodeproj into my project. This would only bring that file so to bring all the classes in stripe project I copied the stripe workspace,stripe.xcworkspace into my project folder.

好的,我的解决方案是将整个条带项目stripe.xcodeproj复制到我的项目中。这只会带来该文件,以便将条带项目中的所有类复制到条带工作区,stripe.xcworkspace到我的项目文件夹中。

This solved all architecture related issues.

这解决了所有架构相关的问题。