有谁知道什么时候可以为iOS开发人员下载WatchKit?
Xcode 6是否包含一个模拟器,允许在Mac上创建/测试Apple Watch应用程序?
我已经阅读了一些如何使用UILocalNotification的指南.所以自从我第一次尝试以来,我已经尝试过并且没有成功.要在AppDelegate.m中注册通知,我使用:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
//if it is iOS 8
if ([application respondsToSelector:@selector(registerUserNotificationSettings:)])
{
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge|UIUserNotificationTypeAlert|UIUserNotificationTypeSound) categories:nil];
[application registerUserNotificationSettings:settings];
}
else // if iOS 7
{
UIRemoteNotificationType myTypes = UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeSound;
[application registerForRemoteNotificationTypes:myTypes];
}
UILocalNotification *locationNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsLocalNotificationKey];
if (locationNotification) {
// Set icon badge number to zero
application.applicationIconBadgeNumber = 0;
}
return YES;
}
Run Code Online (Sandbox Code Playgroud)
并在应用程序运行时收到通知:
- (void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification
{
NSLog(@"notification recieved %@",notification.alertBody);
// …Run Code Online (Sandbox Code Playgroud) background objective-c ios uilocalnotification ios-simulator
我需要模拟iPhone 4(不是iPhone 4S).我得到了一整套iPhone,但"4"不是其中之一.
现在用Google搜索了我的头发一小时,我做错了什么?

我也试过搞乱构建设置无济于事......
我正在尝试将我的项目上传到远程sonarqube服务器.
该项目是一个多模块项目.
我在父项目上收到错误.声纳的日志:
[INFO] cv-parent ......................................... FAILURE [ 2.962 s]
[INFO] cv-common ......................................... SUCCESS [ 1.236 s]
[INFO] cv-backend ........................................ SUCCESS [ 2.464 s]
Run Code Online (Sandbox Code Playgroud)
现在它报告了一个关于Hibernate的错误:
[ERROR] [15:04:27.096] Invalid value of sonar.libraries for be.vdab:cv-backend
[ERROR] No files nor directories matching '/Users/knaller/.m2/repository/org/hibernate/hibernate-core/4.1.8.FINAL/hibernate-core-4.1.8.FINAL.jar' in directory /Users/knaller/Documents/Java/cv-parent/cv-backend
Run Code Online (Sandbox Code Playgroud)
有没有人知道这个错误意味着什么或如何修复它?
ios ×3
xcode6 ×2
apple-watch ×1
background ×1
eclipse ×1
hibernate ×1
ios8 ×1
maven ×1
objective-c ×1
sonarqube ×1
watchkit ×1
xcode ×1