小编Rud*_*y B的帖子

Xcode 8.2更新后无效的二进制文件

在更新到Xcode 8.2之后,我尝试将更新推送到我的应用程序,并且我收到无效的二进制错误.我以前从未见过这个.我的应用程序的iOS部署目标是iOS 9.0.有没有人看到这个错误或知道如何解决它?

这是电子邮件的内容,解释了二进制文件的无效内容:

Invalid sdk value - The value provided for the sdk portion of LC_VERSION_MIN_IPHONEOS in appname.app/Frameworks/libswiftDispatch.dylib is 10.2 which is greater than the maximum allowed value of 10.1.

Invalid sdk value - The value provided for the sdk portion of LC_VERSION_MIN_IPHONEOS in appname.app/Frameworks/libswiftCore.dylib is 10.2 which is greater than the maximum allowed value of 10.1.

Invalid sdk value - The value provided for the sdk portion of LC_VERSION_MIN_IPHONEOS in appname.app/Frameworks/libswiftCoreImage.dylib is 10.2 which is greater than the …
Run Code Online (Sandbox Code Playgroud)

xcode itunesconnect ios swift

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

Java计算从当前时间到事件的时间

我正在尝试计算足球比赛开始前的时间。

这是我所知道的:

  • 我有活动时间:2016-08-16T19:45:00Z
  • 我知道它的字符串格式是“ yyyy-M-dd'T'h:m:s'Z'
  • 我知道时区是“CET”。

我希望能够以天为单位计算从当前时间到此日期的差异。

这是我尝试过的:

    String gameDate = "2016-03-19T19:45:00'Z'"
    DateFormat apiFormat = new SimpleDateFormat("yyyy-M-dd'T'h:m:s'Z'");
    apiFormat.setTimeZone(TimeZone.getTimeZone("CET"));
    Date dateOfGame = apiFormat.parse(gameDate);

    DateFormat currentDateFormat = new SimpleDateFormat("yyyy-M-dd'T'h:m:s'Z'");
    currentDateFormat.setTimeZone(TimeZone.getTimeZone(userTimezone));
    Date currentDate = apiFormat.parse(currentDateFormat.format(new Date()));

    long lGameDate = dateOfGame.getTime();
    long lcurrDate = currentDate.getTime();
    long difference = lGameDate - lcurrDate;
    Date timeDifference = new Date(difference);

    String daysAway = new SimpleDateFormat("d").format(timeDifference);
    Integer intDaysAway = Integer.parseInt(daysAway);
Run Code Online (Sandbox Code Playgroud)

您可能想知道为什么我不只是获取游戏日期 (8) 并减去当前日期 (19)。在当前日期是 29 日而比赛日期是下个月的 3 日的极端情况下,我不会这样做。

java

5
推荐指数
2
解决办法
8525
查看次数

标签 统计

ios ×1

itunesconnect ×1

java ×1

swift ×1

xcode ×1