Ios xcode在实际设备中运行程序时崩溃

Ios xcode在实际设备中运行程序时崩溃,ios,swift,Ios,Swift,嗨,我是iOS开发新手,使用xcode 7.2和swift作为编程语言。我正在集成GoogleAPI以编程方式发送邮件。当我在模拟器中运行项目时,它工作得很好,但如果我在实际设备中运行它,它就会抛出错误 dyld: Library not loaded: @loader_path/../Frameworks/GTL.framework/GTL Referenced from: /private/var/mobile/Containers/Bundle/Application/9EC87076-4

嗨,我是iOS开发新手,使用xcode 7.2和swift作为编程语言。我正在集成GoogleAPI以编程方式发送邮件。当我在模拟器中运行项目时,它工作得很好,但如果我在实际设备中运行它,它就会抛出错误

dyld: Library not loaded: @loader_path/../Frameworks/GTL.framework/GTL
Referenced from: /private/var/mobile/Containers/Bundle/Application/9EC87076-4ACC-464A-AA7F-5133EF51F946/AppName.app/AppName.
目标->常规->链接框架和库->GTL.framework-Required
中的设置更改为
Optional
后,错误会消失,但在运行应用程序时会因错误而崩溃

NSForwarding: warning: object 0xcab20 of class 'GTLServiceGmail' does not implement methodSignatureForSelector: -- did you forget to declare the superclass of 'GTLServiceGmail'?
2016-02-15 23:38:49.579 AppName[675:190073] *** NSForwarding: warning: object 0xcab20 of class 'GTLServiceGmail' does not implement doesNotRecognizeSelector: 
如何解决这个问题?请引导我


提前感谢。

似乎有些对象应该是“GTLServiceGmail”类型,但不是,但我不能完全确定。你能上传你正在使用的代码吗?我按照“”的说明,使用了步骤4:设置样本中提到的示例代码。我也有同样的错误,我完全按照示例应用程序进行操作。错误来自于我声明private let service=GTLServiceGmail()Hi-gbotha时,该代码现在对您有效吗?