标签: ios-simulator

iOS模拟器SpriteKit上的低FPS

我在Xcode 6 iOS模拟器上发现了一个奇怪的行为.

即使我的GameScene只显示一个菜单,模拟器FPS区域也很低,大约20 FPS.

是否存在可能导致此问题的已知问题?此外,当我开始自己的游戏时,它会立即从大约30FPS降至19 FPS.

这是我在启动时加载的代码:

 override func didMoveToView(view: SKView) {
        var sud:NSUserDefaults = NSUserDefaults.standardUserDefaults()

        if(sud.valueForKey("highscores") != nil){
            highScores = sud.valueForKey("highscores") as [Int]
        }else{
            highScores = [0, 0]
            sud.setValue(highScores, forKey: "highscores")
        }

        createColors()
        createStartMenu()  
    }


func createColors(){
        colorArray = [
            ColorClass(name: "greenSea", color: greenSea),
            ColorClass(name: "emerald", color: emerald),
            ColorClass(name: "peterRiver", color:peterRiver),
            ColorClass(name: "amethyst", color:amethyst),
            ColorClass(name: "wetAsphalt", color:wetAsphalt),
            ColorClass(name: "sunFlower", color:sunFlower),
            ColorClass(name: "carrot", color:carrot),
            ColorClass(name: "pumpkin", color:pumpkin),
            ColorClass(name: "alizarin", color:alizarin),
            ColorClass(name: "pomeGranate", color:pomeGranate),
            ColorClass(name: "clouds", color:clouds),
            ColorClass(name: "asbestos", color:asbestos)] …
Run Code Online (Sandbox Code Playgroud)

frame-rate ios-simulator sprite-kit

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

架构i386的非法文本重新定位(直接引用)(全局,弱)

搜索在许多邮件列表中显示此错误,但既不是一般解决方案也不是解释.

什么illegal text-relocoation (direct reference) to (global,weak)意思,怎么解决.

具体来说,我使用这个脚本构建了ffmpeg-2.5.2 .在构建使用它的XCode测试时,会出现以下错误:

ld: illegal text-relocoation (direct reference) to (global,weak)
    _ff_h264_cabac_tables in <...>/myLib.a(cabac.o)
    from _ff_h264_decode_mb_cabac in <...>/myLib.a(h264_cabac.o)
    for architecture i386
Run Code Online (Sandbox Code Playgroud)

这是否需要编译器/链接器选项来修复或某种代码更改?

ffmpeg clang ld ios-simulator xcode6

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

Xcode 6.1 Interface Builder中缺少iPhone 6和iPhone 6+选项

我正在使用Xcode 6.1处理iPhone 6+的应用程序,我可以从Interface Builder中选择iPhone 6+的大小.

昨天我的硬盘崩溃了,我做了Time Machine恢复.之后,我的Xcode 6.1不再支持iPhone 6和6+了,我的所有模拟器都丢失了.我试图在iPhone 6+上运行我的应用程序,所有屏幕都缩小到iPhone 5大小.

我所有的模拟器都不见了.

请帮忙.

ios-simulator iphone-6-plus xcode6.1

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

模拟器不显示UILocalNotification

我正在尝试合并在一定时间间隔后触发的本地通知,但是,在使用模拟器进行测试时,我似乎无法在任何时候显示通知.

我只是想在创建后10秒显示本地通知,但是,当在模拟器中运行应用程序时,无论应用程序是在前台还是后台,都不会显示任何内容.

我错过了什么吗?这可能与时区有关吗?

//通知设置

UILocalNotification* localNotification = [[UILocalNotification alloc] init];
localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:10];
localNotification.alertBody = @"Testing";
localNotification.alertAction = @"Show me the item";
localNotification.timeZone = [NSTimeZone defaultTimeZone];
localNotification.applicationIconBadgeNumber = [[UIApplication sharedApplication] applicationIconBadgeNumber] + 1;

[[UIApplication sharedApplication] scheduleLocalNotification:localNotification];
Run Code Online (Sandbox Code Playgroud)

//这是我的app委托中的didReceiveLocalNotification

UIApplicationState state = [application applicationState];
if (state == UIApplicationStateActive) {
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Reminder" message:notification.alertBody delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alert show];
}
Run Code Online (Sandbox Code Playgroud)

timezone uiapplication ios uilocalnotification ios-simulator

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

iOS - 更改Xcode模拟器屏幕大小

我正在使用Xcode 7,并且在将模拟器与Xcode中显示的视图匹配时遇到问题.模拟器屏幕似乎"放大"太多,因此,运行模拟器时,不会显示位于视图边缘附近的某些对象.

Deployment target: 9.0
Devices: Universal
Target scheme: iPhone 6
Run Code Online (Sandbox Code Playgroud)

我做了一些关于Xcode自动布局的阅读,但似乎无法弄清楚需要更改的设置.(如何根据我的设备屏幕安装模拟器?)

xcode simulator scale ios ios-simulator

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

iTunes Connect屏幕截图不接受iPad PRO屏幕截图

我的iPad PRO模拟器没有从iPad AIR模拟器扩展,我有启动画面故事板.所以我从iPad PRO模拟器中截取了屏幕截图并尝试将其上传到iTunes Connect中的屏幕截图,但它给了我一个大小错误的警告.为什么iPad PRO模拟器使用不正确的iTunes Connect大小?

screenshot itunesconnect ipad ios ios-simulator

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

iOS模拟器是虚拟机还是模拟器?

随Xcode一起安装的iOS模拟器是VM还是类似Android的模拟器?

ios ios-simulator

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

在向Apple App Store提交iOS游戏和应用程序时,如何跳过对iPad,iPad 2和iPad 3的支持?

我正在我的REAL设备上开发和测试我的iOS游戏,这是iPad 4(第四代),它在REAL iPad 4上运行良好.但是,我还没有在iPad 1等真正的旧iPad上测试游戏. iPad 2甚至iPod.所以,我想有3个相互关联的问题如下:

(1)Xcode Simulator?
真正的iPad 1只有256 Mb的RAM,真正的iPad 2只有512 Mb的RAM.此外,这两款设备的处理器肯定比新iPad的处理器慢.(很遗憾,我没有钱购买iPad 1和iPad 2进行测试.)

那么,如果我使用Xcode模拟器在这两个设备上测试我的游戏,模拟器是否会准确设置真正反映这些设备的RAM,处理器速度和硬件性能限制的测试条件?如果有办法,请告诉我如何做到这一点?

(老实说,我认为XCODE模拟器只是:它是一个模拟器而不是模拟器.因此,我怀疑XCODE模拟器能够准确地模拟真实iPad 1和iPad 2设备上的测试条件,因此,我我担心我对XCODE模拟器的测试不准确.例如,模拟器可能会显示游戏运行正常,但实际上,当用户在真正的iPad 1和2上安装该游戏时,它可能会有一些滞后的问题用动画来说至少......)

(2)跳过iPad 1,iPad 2,iPad3和iPod?
有没有办法告诉Apple我只想将我的游戏发布到iPad 4(第四代)和新一代iPad,我不想发布我的iPad 1和iPad 2游戏?

(3)Apple规则?
或者,在开发商可以在App商店发售游戏之前,Apple是否会执行所有iPad游戏必须适用于所有iPad(包括iPad 1和iPad 2)的规则?

iphone xcode ipad ios ios-simulator

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

iOS模拟器:我如何查看后台应用程序?

如何在iOS模拟器上查看后台应用程序?
它的键盘快捷键是什么,或者我必须从模拟器菜单中选择什么?

xcode simulator ios-simulator ios9 ios10

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

iOS模拟器:从终端终止所有应用

我需要使用终端/脚本终止iOS模拟器中所有正在运行的应用程序,有什么想法吗?

请不要告诉我使用手势或CTRL + H,我需要在终端中使用它。

terminal ios ios-simulator

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