小编iPC*_*iPC的帖子

如何使用iOS 11,Apple TV 4K等在Xcode 9中执行无线调试?

最近在Xcode 9,iOS 11和tvOS 11中添加了无线调试功能.Apple TV 4K没有USB端口,因此需要进行无线调试.如何在Xcode中执行此无线调试?

xcode ios ios11 xcode9

333
推荐指数
12
解决办法
11万
查看次数

Images.xcassets:错误:无法为SimDeviceType类型找到合适的设备

当我尝试在模拟器中运行应用程序时,我持有Xcode 8.3.2和Xcode 9 beta 1,我的项目在Xcode 8.3.2中运行.我得到了以下错误.

Images.xcassets: error: Failed to find a suitable device for the type SimDeviceType : com.apple.dt.Xcode.IBSimDeviceType.iPad-2x with runtime SimRuntime : 10.3 (14E269) - com.apple.CoreSimulator.SimRuntime.iOS-10-3
    Failure Reason: Failed to create SimDeviceSet at path /Users/Mac/Library/Developer/Xcode/UserData/IB Support/Simulator Devices. You'll want to check the logs in ~/Library/Logs/CoreSimulator to see why creating the SimDeviceSet failed.
    Underlying Errors:
        Description: Failed to initialize simulator device set.
        Failure Reason: Failed to subscribe to notifications from CoreSimulatorService.
        Underlying Errors:
            Description: Error returned in reply to …
Run Code Online (Sandbox Code Playgroud)

ios ios-simulator xcode8 ios11 xcode9-beta

10
推荐指数
2
解决办法
4599
查看次数

主线程检查器:在后台线程上调用UI API: - [UIApplication delegate]

Xcode 9似乎报告了许多对UIApplication属性的主线程调用.即使UI没有被更新,由于日志的扩展它会产生默认环境,因此这特别麻烦.

4   TestApp                             0x0000000101c262e0 __39-[ViewController viewDidLoad]_block_invoke + 196
5   libdispatch.dylib                   0x0000000102279654 _dispatch_call_block_and_release + 24
6   libdispatch.dylib                   0x0000000102279614 _dispatch_client_callout + 16
7   libdispatch.dylib                   0x0000000102289008 _dispatch_queue_serial_drain + 716
8   libdispatch.dylib                   0x000000010227ce58 _dispatch_queue_invoke + 340
9   libdispatch.dylib                   0x000000010228a1c4 _dispatch_root_queue_drain_deferred_wlh + 412
10  libdispatch.dylib                   0x00000001022917fc _dispatch_workloop_worker_thread + 868
11  libsystem_pthread.dylib             0x00000001ac6771e8 _pthread_wqthread + 924
12  libsystem_pthread.dylib             0x00000001ac676e40 start_wqthread + 4
Run Code Online (Sandbox Code Playgroud)

multithreading ios ios11 xcode9

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

如何在OSX 10.10中使用Homebrew卸载Erlang?

我已经在我的OSX机器上安装了Erlang,但是我遇到了以下问题:

/ usr/local/bin/erl:第28行:/Users/irshadpc/@@HOMEBREW_CELLAR@@/lang/17.5/lib/erlang/erts-6.4/bin/erlexec:没有这样的文件或目录/ usr/local/bin/erl:第28行:exec:/Users/irshadpc/@@HOMEBREW_CELLAR@@/lang/17.5/lib/erlang/erts-6.4/bin/erlexec:无法执行:没有这样的文件或目录.

任何人都可以帮我卸载Erlang并重新安装吗?

macos erlang homebrew

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

有没有办法在Xcode 8 beta上获得iOS 7模拟器

我刚刚将我的Xcode更新为测试版(8.0),我丢失了之前版本中的iOS8先前模拟器.我仍然需要iOS 7 SDK和iOS 8.感谢任何帮助

xcode ios ios-simulator ios7 xcode8

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

Swift 3.0或Swift 2.3最低系统版本要求,它是在iOS 7中部署的

Swift 3.0即将推出Xcode 8,使用Swift 3.0所需的最低iOS/OS X系统版本是多少?这是swift 3.0支持iOS 7吗?

ios ios7 swift osx-elcapitan xcode8

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

如何在目标c中检查pan卡编辑文本的验证?

我必须在iOS应用程序开发中使用一些正则表达式来验证测试是否是有效的pan卡.任何人都可以帮助解决这个问题.

regex validation objective-c ios

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

在mac OS X上更新youtube-dl

我尝试更新youtube-dl上的最新版本,但我无法更新,当我尝试得到错误时
"看起来你安装了youtube-dl与包管理器,pip,setup.py或tarball.请使用更新."

macos homebrew youtube-dl osx-elcapitan

3
推荐指数
2
解决办法
5545
查看次数

如何在ios中点击圈内圈时检测区域

在此输入图像描述我想在圈内敲击时找到该区域.实际上我做了一个计算,但那不准确.

检查我写的代码片段,以便在循环视图中找到选项卡的位置.

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event" this method

     float  dx = touchLocation.x -160;
     float  dy = touchLocation.y - 240;
     double angle = atan2(touchLocation.x,touchLocation.y);
 /* Device is iPad */
            if (count==4) {


                if(angle>-1.639&&angle<=0.775)
                {
                    area=1;
                    NSLog(@"touched here  1 ********************************** ");
                }
                else if(angle>0.775&&angle<=1.579)
                {
                    area=2;
                    NSLog(@"touched here   2********************************** ");
                }
                else if(angle>1.579&&angle<=2.466)
                {
                    area=3;NSLog(@"touched here   3********************************** ");
                }
                else
                {
                    area=4;NSLog(@"touched here  4 ********************************** ");
                }


            }
            else  if (count==5) {


                if(angle>-1.520&&angle<=0.553)
                {
                    area=1;
                    NSLog(@"touched here  1 ********************************** ");
                } …
Run Code Online (Sandbox Code Playgroud)

atan2 ios

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

无法在我的模拟器上运行app:macOS Sierra

我无法使用Xcode 7.3.1 iPhone 5s模拟器在模拟器上启动我的应用程序.我在Xcode中收到错误消息是"DTAssetProviderService无法启动DTXConnection"在此输入图像描述

beta debugging macos ios xcode7

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