https://twittercommunity.com/t/error-0x72613c21/54532

这是我在Twitter社区上的帖子的链接,但似乎他们无法解决我的问题 . 现在我不得不评论推特代码 .

基本上问题是我可以运行模拟的应用程序或我的iphone,但当我去导出它将它放在测试飞行xcode引发错误,不会让我继续

这是我的app委托代码

导入UIKit导入CoreData导入Fabric导入TwitterKit导入Parse导入螺栓

@UIApplicationMain类AppDelegate:UIResponder,UIApplicationDelegate {

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)