小编Pra*_*Das的帖子

Git:错误:无法读取MacOSX.sdk的SDK设置

更新到新的OS Mojave后添加git时出错

错误

git:错误:无法读取'/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk'的SDK设置

遇到错误:

  • 设备:MacBook Pro(Retina,13英寸,2013年初)
  • 操作系统:MacOS Mojave

截图 终端屏幕截图

如何解决这个错误?

任何人的帮助都会非常受欢迎.

git terminal macos-mojave

46
推荐指数
1
解决办法
6652
查看次数

如何将任何语言的日期转换为特定语言

如何将任何语言(阿拉伯语)的日期转换为特定语言(英语).

在将区域格式更改为阿拉伯语时,日期会发生变化.当我从某些控件(UIButtons或UILabels)中选择日期值以保存数据库时,它以阿拉伯语选择日期并以相同的格式保存.在这里,我想将日期从阿拉伯语转换为英语,然后将其保存在数据库中.

我尝试了这个,但它回来了

NSDate *currentDate = //My date coming like  “????-??-?? ??:??:?? ”
NSDateFormatter *formatter=[[NSDateFormatter alloc] init];
NSLocale *usLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
[formatter setLocale: usLocale];
[formatter setDateFormat:@"yyyy-MM-dd HH:mm:s a"];
NSString *formattedDate = [formatter stringFromDate: currentDate];
Run Code Online (Sandbox Code Playgroud)

谁能帮帮我吗 ?

nsdateformatter ios nslocale

1
推荐指数
1
解决办法
1781
查看次数

标签 统计

git ×1

ios ×1

macos-mojave ×1

nsdateformatter ×1

nslocale ×1

terminal ×1