正如标题所示,我的Ionic iOS构建成功,但是,当我模仿它时,iOS模拟器出现,除了我的应用程序没有加载到那里。
这是错误消息:
2015-05-04 08:37:05.108 xcodebuild[45167:2385652] DVTAssertions: Warning in /SourceCache/DVTiOSFrameworks/DVTiOSFrameworks-7536/DTDeviceKitBase/DTDKRemoteDeviceDataListener.m:79
Details: Running against an old version of MobileDevice; some interaction with proxied devices may be unavailable.
Object: <DTDKRemoteDeviceDataListener: 0x7f83cc87fad0>
Method: -listenerThreadImplementation
Thread: <NSThread: 0x7f83cc86c010>{number = 2, name = (null)}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.
答案 0 :(得分:1)
正在运行namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load( object sender, EventArgs e )
{
var list = new List<ItemX>() {
new ItemX { Name = "a", Dictionary = new Dictionary<string, string> { { "1", "2" },{"qqq","wwww"} } },
new ItemX { Name = "b", Dictionary = new Dictionary<string, string> { { "3", "4" } } },
new ItemX { Name = "c", Dictionary = new Dictionary<string, string> { { "5", "6" } } },
};
comboBox1.DataSource = list;
comboBox1.DisplayMember = "Name";
comboBox1.ValueMember = "Dictionary";
}
private void button1_Click( object sender, EventArgs e )
{
if ( comboBox1.SelectedValue != null )
{
var d = comboBox1.SelectedValue as Dictionary<string, string>;
if ( d != null )
{
var builder = new StringBuilder();
foreach ( KeyValuePair<string, string> p in d )
{
builder.AppendFormat( "key:{0} value:{1}\n", p.Key, p.Value );
}
MessageBox.Show( builder.ToString() );
}
}
}
}
public class ItemX
{
public string Name { get; set; }
public Dictionary<string, string> Dictionary { get; set; }
}
}
而不是ionic run ios
为我解决了这个问题。