简体   繁体   English

在具有未在模拟器上显示类的SDK的情况下在模拟器上运行(阻止我运行)

[英]Run on simulator while having SDK that don't show classes on simulator ( prevent me from running)

I am using we-accept SDK from https://www.weaccept.co/ for accepting payment . 我正在使用https://www.weaccept.co/的 we-accept SDK接受付款。

My problem is that when i try to run on simulator ( not to use that SDK but for other reason) Xcode doesn't see any variable or classes from that SDK because the rules for this SDK is that it's not working on simulator. 我的问题是,当我尝试在模拟器上运行时(不使用该SDK而是出于其他原因),Xcode看不到该SDK的任何变量或类,因为该SDK的规则是它不能在模拟器上运行。

I don't know how to run my application anymore on simulator after using that SDK in my code . 在代码中使用该SDK之后,我不知道如何在模拟器上运行应用程序。

Any help how to run on simulator with my code containing those SDK classes ?? 任何有关如何使用包含这些SDK类的代码在模拟器上运行的帮助?

You must differentiate between Simulator and real when use any of this pod codes : 使用以下任何一个pod代码时,您必须区分Simulator和Real:

  #if targetEnvironment(simulator)
    // your simulator code
  #else
   // your real device code
  #endif

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM