Ios xcode twitter出现错误0x72613c21
这是我在twitter社区发布的帖子的链接,但他们似乎无法解决我的问题。现在我不得不把推特代码注释掉 本质上,问题是我可以在模拟或iphone上运行该应用程序,但当我将其导出到试飞时,xcode抛出一个错误,不允许我继续 这是我的应用程序代理代码 导入UIKit 导入CoreData 进口织物 导入推特套件 导入解析 进口螺栓 @UIApplicationMain 类AppDelegate:UIResponder、UIApplicationLegate{Ios xcode twitter出现错误0x72613c21,ios,swift,twitter,Ios,Swift,Twitter,这是我在twitter社区发布的帖子的链接,但他们似乎无法解决我的问题。现在我不得不把推特代码注释掉 本质上,问题是我可以在模拟或iphone上运行该应用程序,但当我将其导出到试飞时,xcode抛出一个错误,不允许我继续 这是我的应用程序代理代码 导入UIKit 导入CoreData 进口织物 导入推特套件 导入解析 进口螺栓 @UIApplicationMain 类AppDelegate:UIResponder、UIApplicationLegate{ var window: UIWindow
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
// [Optional] Power your app with Local Datastore. For more info, go to
// https://parse.com/docs/ios_guide#localdatastore/iOS
Parse.enableLocalDatastore()
// Initialize Parse.
Parse.setApplicationId("v8B41QDdT7Abdf4CIXr5xNtnNffYOJ1AlEW5FeED",
clientKey: "fc4oICirIO2n7Or9co84DVw4NOVlMeV3D7shlKun")
// [Optional] Track statistics around application opens.
PFAnalytics.trackAppOpenedWithLaunchOptions(launchOptions)
Fabric.with([Twitter.self()])
return true
}
在有登录名的视图上
import UIKit
import TwitterKit
class PhotographerLoginViewController: UIViewController,
UITextFieldDelegate {
override func viewDidLoad() {
super.viewDidLoad()
let logInButton = TWTRLogInButton { (session, error) in
if let unwrappedSession = session {
let alert = UIAlertController(title: "Logged In",
message: "User \(unwrappedSession.userName) has logged in",
preferredStyle: UIAlertControllerStyle.Alert
)
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
} else {
NSLog("Login error: %@", error!.localizedDescription);
}
}
// TODO: Change where the log in button is positioned in your view
logInButton.frame.origin = CGPoint(x: 47, y: 525)
self.view.addSubview(logInButton)
0x72613c21
是一个内存地址,而不是一个错误。您在中描述的错误似乎与有关,这建议将您的最低部署目标提高到iOS 8。但您需要为您的问题添加更多细节(足以帮助有人从头开始重现)在我真正说出发生了什么之前。@AaronBrager你想要什么样的细节?我真的不知道问题在哪里,所以我不知道从哪里开始。阅读-这包括了你应该在问题中包含的内容