我目前正在为iPhone和iPad开发iOS应用程序.我正在尝试显示一个NavigationController来创建一个显示文件的模块.在iPhone中它工作得很好,但我不能让它在iPad上工作.
我收到以下错误:
'Storyboard (<UIStoryboard: 0x919b200>) doesn't contain a view controller with identifier 'FilesNavigation''
Run Code Online (Sandbox Code Playgroud)
这是代码:
case 10: // Files
{
UINavigationController *navigationController = [storyboard instantiateViewControllerWithIdentifier:@"FilesNavigation"];
FilesViewController *filesViewController = [storyboard instantiateViewControllerWithIdentifier:@"Files"];
[navigationController pushViewController:filesViewController animated:YES];
self.slidingViewController.topViewController = navigationController;
break;
}
Run Code Online (Sandbox Code Playgroud)
在我的故事板中,我已经为导航控制器设置了Storyboard ID.
>##Custom Class
>Class: UINavigationController
>##Identity
>Storyboard ID: FilesNavigation
Run Code Online (Sandbox Code Playgroud)
我将此代码用于其他模块的开关/外壳块上的另一个案例,它也适用于iPad,这是我第一次遇到此错误.
我在非 GUI 模式下使用 JMeter 从 Docker 容器执行测试。我的测试在 Chrome 中使用 Selenium Web 驱动程序。我有一个显示的错误,jmeter.log但我不知道如何解决它。
错误是:
错误 cgjpwsWebDriverSampler: null
当我在我的计算机上本地运行测试时,测试正确执行,但在使用 JMeter 非 gui 模式的 Docker 中它不起作用。
在本地 JMeter 中测试配置:
在 Docker 中执行:
有错误的日志片段
文件
FROM anapsix/alpine-java:8_jdk
LABEL maintainer="origds@gmail.com"
STOPSIGNAL SIGKILL
ENV JMETER_VERSION 5.1.1
ENV JMETER_HOME /opt/apache-jmeter-${JMETER_VERSION}
ENV JMETER_BIN ${JMETER_HOME}/bin
ENV PATH ${JMETER_BIN}:$PATH
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh \
&& apk add --no-cache \
curl \
net-tools \
shadow \
su-exec \
tcpdump \
&& cd /tmp/ \
&& …Run Code Online (Sandbox Code Playgroud) selenium jmeter selenium-chromedriver selenium-webdriver docker
我实际上正在为iPhone和iPad开发应用程序.
我正在实施APN,它适用于iOS <8.0.在Stackoverflow中寻找我发现了很多关于它的问题以及为iOS 8.0及更高版本实现APN的方法,我只是按照这个步骤.
我的代码是:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[self registerForRemoteNotification];
return YES;
}
- (void)registerForRemoteNotification
{
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) {
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:
UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
} else {
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
}
}
#ifdef __IPHONE_8_0
- (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings
{
//register to receive notifications
[application registerForRemoteNotifications];
NSLog(@"Active notifications: %@", [[UIApplication sharedApplication] currentUserNotificationSettings]);
}
#endif
Run Code Online (Sandbox Code Playgroud)
当我检查活动通知时,它返回"UIUserNotificationSettings:0x156c03e0; types:(none);" 我不明白为什么,日志仍然显示"试图标记应用程序图标但未获得用户许可以标记应用程序".
我正在开发适用于iPhone和iPad的应用程序.
突然间我因为这个错误而无法运行我的项目:
clang: error: no such file or directory: '/Users/AkdemiaMacBookAir/Developer/iOS/ios-akdemia/ios-akdemia/ios-akdemia-Prefix.pch'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我正在寻找Stack Overflow,我实际上检查了我的前缀标题是正确的.

这是文件:

我不明白为什么Xcode的尝试从这个路径"/Users/AkdemiaMacBookAir/Developer/iOS/ios-akdemia/ios-akdemia/ios-akdemia-Prefix.pch"如果我从来没有告诉它编译PCH.