使用XCODE 4.5/Mountain Lion存储iOS模拟器的用户数据文件在哪里?
以前他们在〜/ Library/Application Support/iPhone Simulator/[OS version]/Applications/[appGUID] /,但不多了.
我有XCODE 4.5.1.
帮助赞赏.
我很难让TestFlight使用我的MonoTouch应用程序(Monotouch 5,IOS5)并且没有找到TestFlight的任何MonoTouch文档.
这是我到目前为止所尝试的.
从https://github.com/mono/monotouch-bindings/tree/master/TestFlight下载了TestFlight绑定- 在添加它作为参考后,似乎TestFlight方法实际上根本没有公开,所以我寻找另一组绑定.
从https://github.com/ayoung/monotouch-testflight下载了ayoung的TestFlight绑定.使用Make构建monotouch-testflight.dll,将其复制到项目并添加到References - 这次TestFlight方法都可见.
将libTestFlight.a添加到MonoTouch项目中的Lib文件夹,并将BuildAction设置为Nothing.(我也有RedLaser).
Per ayoung,我启用了LLVM编译器(使用ARMv7); ayoung说它是必需的.在项目选项 - > iPhone构建我的其他mtouch参数是:
-cxx -nosymbolstrip -nostrip -gcc_flags"-lgcc_eh -framework SystemConfiguration -framework CFNetwork -framework CoreVideo -framework CoreMedia -framework AVFoundation -framework OpenGLES -framework Security -L $ {ProjectDir}/Lib -ltestflight -RedLaserSDK -ObjC"
注意:在将TestFlight添加到项目之前,应用程序可以正常使用RedLaser.
在这里-lgcc_eh就像ayoung一样 - 我无法找出它是什么或它是什么.也许我应该有一个gcc_eh.dll(?),但我不是AFAIK,我不知道在哪里可以找到这样的东西.
在Main.cs中我添加了
使用TestFlightSdk;
在FinishedLaunching中,我补充道
TestFlight.TakeOff( "(downloaded team token is here)" );
Run Code Online (Sandbox Code Playgroud)
编译并安装没有错误(发布| iPhone).
当我现在在设备上运行应用程序时,它立即退出,没有我能发现的诊断.
如果编译为Debug | iPhone,该应用程序也会立即退出.但是,在这种情况下,如果我关闭LLVM尽管存在严格的限制,那么在应用程序输出中我会看到以下内容:
TestFlight:已启动会话TestFlight:已安装崩溃处理程序线程已启动:已启动线程:TestFlight:已识别团队令牌TestFlight:会话结束TestFlight:当前已禁用与TestFlight的通信,请在日志中查看详细信息
这可能是因为我还没有将应用程序的.ipa文件上传到TestFlight?(但是,在这种情况下,该应用确实会启动.)
对这些问题的任何帮助都将非常感激.
在MonoTouch模拟器中,我通过以下诊断获得随机崩溃:
/tmp/mono-gdb-commands.FV1b8V:1: Error in sourced command file:
unable to debug self
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
Run Code Online (Sandbox Code Playgroud)
跟踪提到"UISearchDisplayController dealloc":
at (wrapper managed-to-native) MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend (intptr,intptr) <IL 0x00024, 0xffffffff>
at MonoTouch.Foundation.NSObject/MonoTouch_Disposer.Drain (MonoTouch.Foundation.NSObject) [0x0002a] in /Users/plasma/Source/iphone/monotouch/Foundation/NSObject.cs:305
at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <IL 0x00052, 0xffffffff>
at (wrapper managed-to-native) MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x0009f, 0xffffffff>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/plasma/Source/iphone/monotouch/UIKit/UIApplication.cs:26
at TestCase.Application.Main (string[]) [0x00000] …Run Code Online (Sandbox Code Playgroud) crash uinavigationcontroller uisearchbar xamarin.ios uisearchdisplaycontroller
在MonoTouch中,我需要处理NSSet中的每个对象.我使用Enumerate的尝试如下:
public override void ReturnResults ( BarcodePickerController picker, NSSet results )
{
var n = results.Count; // Debugging - value is 3
results.Enumerate( delegate( NSObject obj, ref bool stop )
{
var foundCode = ( obj as BarcodeResult ); // Executed only once, not 3 times
if ( foundCode != null )
{
controller.BarcodeScannedResult (foundCode);
}
});
// Etc
}
Run Code Online (Sandbox Code Playgroud)
虽然在结果中使用三个对象调用该方法,但在委托中只处理一个对象.我本来希望代表被执行三次,但我必须错误地了解它是如何工作的.
无法找到任何文档或示例.任何建议都非常感谢.
xamarin.ios ×3
binding ×1
crash ×1
enumerate ×1
ipa ×1
iphone ×1
nsset ×1
testflight ×1
uisearchbar ×1
xcode4.5 ×1