1

MonoDevelop から過去 2 年間展開したアプリがあります。アプリには異なるバンドル ID を持つ 2 つのバージョンがあるため、2 つのプロビジョニング プロファイルがあります。以前は、バンドル ID を切り替えて展開しましたが、すべてがうまく機能しています。

MonoDevelop/MonoTouch (3.0.4.7/6.0.2) の最新のアップグレード後、LLVM を使用してビルドされ、デバッグが有効になっていないアドホック ビルドでこれが機能しなくなりました。開発期間が長いため、Monodevelop/MonoTouch の変更によるものなのか、プロジェクトの変更によるものなのかはわかりません。

奇妙なことに、リリース ビルドの「デバッグを有効にする」をチェックすると、すべて正常にデプロイされます。次に、「競合する --debug および --llvm オプション。ソフトデバッグは無効です」という警告をログに記録します。デバッグオプションを有効にしても効果がないことを示しているようです?

問題は、リリース ビルドでデバッグを有効にすると、アプリがデバイスに正しくデプロイされるのはなぜですか?

サードパーティのコンテンツに関する唯一の変更点は、 https ://github.com/dalexsoto/AlexTouch.GoogleAdMobAds から新しい Admob バインディングを追加したことです が、私の知る限り、これらに特別なパラメーターを含める必要はありません。リリースビルドで。

デバッグなしでディストリビューション ビルドを圧縮し、承認のために Apple に送信しましたが、アドホック ビルドと同じ問題が発生するため、拒否されると思います。モノの達人がこれについて何らかの洞察を持っていることを願っています!

インストールと最初の起動を含む完全なログは次のとおりです。

    Sep 30 23:58:23 Christer-sin-iPhone librariand[5904] <Error>: client process 619 does not have a valid com.apple.developer.ubiquity-container-identifiers entitlement
    Sep 30 23:58:24 Christer-sin-iPhone ubd[5905] <Notice>:
    Sep 30 23:58:27 Christer-sin-iPhone librariand[5904] <Notice>: MMe quota status changed: under quota
    Sep 30 23:58:28 Christer-sin-iPhone installd[5365] <Error>: 0x2ffa2000 handle_uninstall: Uninstall requested by SpringBoard
    Sep 30 23:58:28 Christer-sin-iPhone installd[5365] <Error>: 0x2ffa2000 MobileInstallationUninstall_Server: Uninstalling com.myapp
    Sep 30 23:58:29 Christer-sin-iPhone ubd[5905] <Error>: Sep 30 23:58:29  SecTrustEvaluate  [leaf AnchorTrusted]
    Sep 30 23:58:30 Christer-sin-iPhone installd[5365] <Error>: 0x30b000 filter_attributes: Info.plist keys requested via MobileInstallationLookup/Browse in client Xcode (via mobile_installation_proxy) were not found in MobileInstallation's cache. Please file a bug requesting that these keys be added: <CFBasicHash 0x1e5851c0 [0x3b76a100]>{type = mutable set, count = 18,
    entries =>
    0 : <CFString 0x3b7569f4 [0x3b76a100]>{contents = "CFBundlePackageType"}
    1 : <CFString 0x1e57a800 [0x3b76a100]>{contents = "BuildMachineOSBuild"}
    2 : <CFString 0x3b757a44 [0x3b76a100]>{contents = "CFBundleResourceSpecification"}
    3 : <CFString 0x1e57b060 [0x3b76a100]>{contents = "DTPlatformBuild"}
    4 : <CFString 0x3b754794 [0x3b76a100]>{contents = "DTCompiler"}
    5 : <CFString 0x3b756564 [0x3b76a100]>{contents = "CFBundleSignature"}
    6 : <CFString 0x3b757224 [0x3b76a100]>{contents = "DTSDKName"}
    7 : <CFString 0x1e5782a0 [0x3b76a100]>{contents = "NSBundleResolvedPath"}
    8 : <CFString 0x3b753eb4 [0x3b76a100]>{contents = "UISupportedInterfaceOrientations"}
    10 : <CFString 0x3b75be84 [0x3b76a100]>{contents = "DTXcode"}
    13 : <CFString 0x3b75beb4 [0x3b76a100]>{contents = "CFBundleInfoDictionaryVersion"}
    16 : <CFString 0x3b759304 [0x3b76a100]>{contents = "CFBundleSupportedPlatforms"}
    17 : <CFString 0x1e57b0a0 [0x3b76a100]>{contents = "DTXcodeBuild"}
    18 : <CFString 0x1e5782c0 [0x3b76a100]>{contents = "UIStatusBarTintParameters"}
    19 : <CFString 0x3b757e54 [0x3b76a100]>{contents = "DTPlatformVersion"}
    20 : <CFString 0x3b75abf4 [0x3b76a100]>{contents = "DTPlatformName"}
    21 : <CFString 0x3b75bc84 [0x3b76a100]>{contents = "CFBundleDevelopmentRegion"}
    22 : <CFString 0x1e57b080 [0x3b76a100]>{contents = "DTSDKBuild"}
    }
    Sep 30 23:58:31 Christer-sin-iPhone mobile_installation_proxy[5908] <Error>: 0x3c390b88 MobileInstallationSlowLookupBreak: MobileInstallationBrowse was called without specifying an options dictionary containing kLookupReturnAttributesKey. This usage is inefficient and may cause performance problems. Break on MobileInstallationSlowLookupBreak to debug.
    Sep 30 23:58:31 Christer-sin-iPhone mobile_installation_proxy[5908] <Error>: 0x3c390b88 MobileInstallationSlowLookupBreak: Existing options dictionary: <CFBasicHash 0x1cd81790 [0x3b76a100]>{type = mutable dict, count = 1,
    entries =>
    0 : <CFString 0xa51a0 [0x3b76a100]>{contents = "RequestProxiedFor"} = <CFString 0x1cd818f0 [0x3b76a100]>{contents = "mtouch"}
    }
    Sep 30 23:58:38 Christer-sin-iPhone installd[5365] <Error>: 0x2ffa2000 handle_install: Install of "/var/mobile/Media/PublicStaging/NDC2010.app" requested by mobile_installation_proxy
    Sep 30 23:58:38 Christer-sin-iPhone installd[5365] <Error>: 0x2ffa2000 MobileInstallationInstall_Server: Installing app com.myapp
    Sep 30 23:58:39 Christer-sin-iPhone installd[5365] <Error>: Sep 30 23:58:39  SecTrustEvaluate  [leaf CriticalExtensions IssuerCommonName]
    Sep 30 23:58:41 Christer-sin-iPhone timed[5457] <Notice>: (Note ) CoreTime: Received timezone "Europe/Oslo" from "Location"
    Sep 30 23:58:41 Christer-sin-iPhone timed[5457] <Notice>: (Note ) CoreTime: Current mcc: '242' simulated:'0'.
    Sep 30 23:58:41 Christer-sin-iPhone timed[5457] <Notice>: (Note ) CoreTime: Not setting time zone to Europe/Oslo from Location
    Sep 30 23:58:42 Christer-sin-iPhone installd[5365] <Error>: 0x2ffa2000 MobileInstallationInstall_Server: Staging: 0.43s; Waiting: 0.00s; Installation: 4.41s; LS Sync: 0.12s; Overall: 4.96s
    Sep 30 23:58:42 Christer-sin-iPhone kernel[0] <Debug>: launchd[5911] Builtin profile: syncdefaultsd (sandbox)
    Sep 30 23:58:44 Christer-sin-iPhone installd[5365] <Error>: 0x2ffa2000 filter_attributes: Info.plist keys requested via MobileInstallationLookup/Browse in client Xcode (via mobile_installation_proxy) were not found in MobileInstallation's cache. Please file a bug requesting that these keys be added: <CFBasicHash 0x1e692820 [0x3b76a100]>{type = mutable set, count = 18,
    entries =>
    0 : <CFString 0x3b7569f4 [0x3b76a100]>{contents = "CFBundlePackageType"}
    1 : <CFString 0x1e58c4a0 [0x3b76a100]>{contents = "BuildMachineOSBuild"}
    2 : <CFString 0x3b757a44 [0x3b76a100]>{contents = "CFBundleResourceSpecification"}
    3 : <CFString 0x1e578200 [0x3b76a100]>{contents = "DTPlatformBuild"}
    4 : <CFString 0x3b754794 [0x3b76a100]>{contents = "DTCompiler"}
    5 : <CFString 0x3b756564 [0x3b76a100]>{contents = "CFBundleSignature"}
    6 : <CFString 0x3b757224 [0x3b76a100]>{contents = "DTSDKName"}
    7 : <CFString 0x1e5761a0 [0x3b76a100]>{contents = "NSBundleResolvedPath"}
    8 : <CFString 0x3b753eb4 [0x3b76a100]>{contents = "UISupportedInterfaceOrientations"}
    10 : <CFString 0x3b75be84 [0x3b76a100]>{contents = "DTXcode"}
    13 : <CFString 0x3b75beb4 [0x3b76a100]>{contents = "CFBundleInfoDictionaryVersion"}
    16 : <CFString 0x3b759304 [0x3b76a100]>{contents = "CFBundleSupportedPlatforms"}
    17 : <CFString 0x1e578240 [0x3b76a100]>{contents = "DTXcodeBuild"}
    18 : <CFString 0x1e57a970 [0x3b76a100]>{contents = "UIStatusBarTintParameters"}
    19 : <CFString 0x3b757e54 [0x3b76a100]>{contents = "DTPlatformVersion"}
    20 : <CFString 0x3b75abf4 [0x3b76a100]>{contents = "DTPlatformName"}
    21 : <CFString 0x3b75bc84 [0x3b76a100]>{contents = "CFBundleDevelopmentRegion"}
    22 : <CFString 0x1e578220 [0x3b76a100]>{contents = "DTSDKBuild"}
    }
    Sep 30 23:59:14 Christer-sin-iPhone NDC2010[5915] <Warning>: MonoTouch: Failed to open /private/var/mobile/Applications/38C5A938-BBDF-4BCD-AD25-1220671DDF63/NDC2010.app/MonoTouchDebugConfiguration.txt
    Sep 30 23:59:14 Christer-sin-iPhone kernel[0] <Debug>: launchd[5915] Builtin profile: container (sandbox)
    Sep 30 23:59:14 Christer-sin-iPhone kernel[0] <Debug>: launchd[5915] Container: /private/var/mobile/Applications/38C5A938-BBDF-4BCD-AD25-1220671DDF63 (sandbox)
    Sep 30 23:59:15 Christer-sin-iPhone NDC2010[5915] <Warning>: Application windows are expected to have a root view controller at the end of application launch
    Sep 30 23:59:15 Christer-sin-iPhone NDC2010[5915] <Critical>: Terminating runtime due to unhandled exception
    Sep 30 23:59:16 Christer-sin-iPhone ReportCrash[5917] <Notice>: Formulating crash report for process NDC2010[5915]
    Sep 30 23:59:16 Christer-sin-iPhone com.apple.launchd[1] (UIKitApplication:com.myapp[0x9886][5915]) <Warning>: (UIKitApplication:com.myapp[0x9886]) Job appears to have crashed: Abort trap: 6
    Sep 30 23:59:16 Christer-sin-iPhone backboardd[52] <Warning>: Application 'UIKitApplication:com.myapp[0x9886]' exited abnormally with signal 6: Abort trap: 6
    Sep 30 23:59:16 Christer-sin-iPhone ReportCrash[5917] <Error>: libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary
4

1 に答える 1

1

アップデート:

これは、最新のGoogleAdMobAds Bindingsで修正されています。


はい、あなたの問題はAdmob Bindingです。リリースビルドでサイズを取得する際に問題があります(ありがとうございます:))、このクラスが問題 GADAdSizeConsなので、このようなことをします

var ad = new GADBannerView(GADAdSizeCons.Banner, new PointF(0,0))
{
    AdUnitID = "Your Id",
    RootViewController = this
};

でのみクラッシュしrelease builds on real deviceます。今日、Xamarin でこれに関するバグを開いたので、これがすぐに修正されることを願っています :)

だからここに回避策があります

わかりましたので、待っている間に手動で手動で作成する必要がありGADSize structます。たとえば、iPhone のポートレート バナーが必要な場合は、これを行います。

GADAdSize gsize = new GADAdSize()
{
    flags = 0,
    size = new System.Drawing.SizeF(320, 50)
};

var ad = new GADBannerView(gsize, new PointF(0,0))
{
    AdUnitID = "Your Id",
    RootViewController = this
}; 

ここに値があります

バナー: フラグ: 0 サイズ: {幅 = 320、高さ = 50 }

FullBanner: フラグ: 0 サイズ: {幅 = 468、高さ = 60 }

リーダーボード: フラグ: 0 サイズ: {幅 = 728、高さ = 90 }

MediumRectangle: フラグ: 0 サイズ: {Width= 300 , Height= 250 }

超高層ビル: フラグ: 0 サイズ: {幅= 120 , 高さ= 600 }

この回避策の欠点は、上記のサイズしか作成できないことです。作成しようとするとCustom Size、広告が配信されません。

お役に立てれば

アレックス

于 2012-10-01T01:45:57.760 に答える