私はXamarin.formsアプリケーションを持っています。 iOSのプロジェクトで、私はhereからHockeyAppパッケージをインストールして、その後のサンプルにhereを私AppDelegate.cs
に次のコードを追加して:できるだけ早く私は、Visual Studioには、次のエラーをスロープログラムをコンパイルしようとしてXamarin IOSアプリケーションでHockey SDKを使用するとリンクに失敗しました
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
//We MUST wrap our setup in this block to wire up
// Mono's SIGSEGV and SIGBUS signals
HockeyApp.Setup.EnableCustomCrashReporting (() => {
//Get the shared instance
var manager = BITHockeyManager.SharedHockeyManager;
//Configure it to use our APP_ID
manager.Configure ("YOUR-HOCKEYAPP-APPID");
//Start the manager
manager.StartManager();
//Authenticate (there are other authentication options)
manager.Authenticator.AuthenticateInstallation();
//Rethrow any unhandled .NET exceptions as native iOS
// exceptions so the stack traces appear nicely in HockeyApp
AppDomain.CurrentDomain.UnhandledException += (sender, e) =>
Setup.ThrowExceptionAsNative(e.ExceptionObject);
TaskScheduler.UnobservedTaskException += (sender, e) =>
Setup.ThrowExceptionAsNative(e.Exception);
});
//The rest of your code here
// ...
}
(およびいくつかの
重大度コード説明プロジェクトファイルの行の抑制状態 エラーネイティブリンクが失敗し、未定義のシンボル: のstd :: __ 1 :: __ vector_base_common :: __ throw_length_error()constはその種類)のより。私がコメントすると 必要なすべてのフレームワークは を参照されたし、ネイティブライブラリが適切にリンクされていることを確認してください。App.iOS
そのコード部分のすべてが正常に動作します。 これに関する提案はありますか? ios xamarinフォームプロジェクトでホッケーをセットアップするのに成功した人は誰ですか?
ありがとうございます。私はiOS 6のターゲット設定とその設定について読んだが、私のアプリが実際にiOS 6をターゲットにしていることに気付かなかった。私はそれを変更して現在作業中である... – Norman
心配する必要はない。 –