我正在创建一个iOS/macOS应用程序,它通过Multipeer Connectivity Framework使用远程控制功能.由于要远程监视和控制的设备将在较长时间内运行,因此使用自动视图控制器方法是不可行的,因为监视设备可能被锁定或进入休眠状态,然后断开连接.所以我使用的是编程方法,这样当监控设备失去连接时,他们会在解锁/唤醒并且应用程序再次启动时自动配对.我的连接使用ViewController方法工作正常,但不是编程委托方法.广告,浏览和邀请工作正常,但是当远程端接受邀请时,我会收到几个错误,然后连接失败.奇怪的是,有几个错误是GCKSession错误.
那么为什么要尝试使用GameCenter框架呢?为什么在接受邀请后失败?它可能只是Xcode 8/Swift 3/iOS 10/macOS Sierra Beta SDK中的一个错误吗?
[ViceroyTrace] [ICE][ERROR] ICEStopConnectivityCheck() found no ICE check with call id (2008493930)
[GCKSession] Wrong connection data. Participant ID from remote connection data = 6FBBAE66, local participant ID = 3A4C626C
[MCSession] GCKSessionEstablishConnection failed (FFFFFFFF801A0020)
Peer Changing
Failed
[GCKSession] Not in connected state, so giving up for participant [77B72F6A] on channel [0]
Run Code Online (Sandbox Code Playgroud)
这是我的连接类的代码
func startAdvertisingWithoutUI () {
if advertiserService == nil {
advertiserService = MCNearbyServiceAdvertiser (peer: LMConnectivity.peerID, discoveryInfo: nil, serviceType: "mlm-timers")
advertiserService?.delegate = …Run Code Online (Sandbox Code Playgroud) multipeer-connectivity swift3 ios10 macos-sierra xcode8-beta4
我刚从OS X 10.11"El Capitan"升级到10.12:"Sierra",当我打开intellijIdea时,我收到以下错误:
无法启动Git:/ usr/bin/git可能Git可执行文件的路径无效.
在macOS Sierra上,我使用Homebrew安装了Apache:
$ brew install httpd24
这引起了一些奇怪的Apache问题.似乎在macOS Sierra上Apache的默认安装仍然在某种程度上是活跃的.我现在想要完全卸载httpd24,但我仍然在我的进程中看到它.这是我做的:
$ brew unlink httpd24
$ brew uninstall httpd24
$ rm -rf /usr/local/etc/apache2/
跑步$ ps aux|grep httpd揭示:
blt 51473 0.0 0.0 2613988 844 ?? S 10:48PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51447 0.0 0.0 2613988 892 ?? S 10:47PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51396 0.0 0.0 2613988 856 ?? S 10:47PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51345 0.0 0.0 2613988 844 ?? S 10:47PM 0:00.00 /usr/local/Cellar/httpd24/2.4.23_2/bin/httpd -k start
blt 51285 …Run Code Online (Sandbox Code Playgroud) 我刚刚升级到macOS Sierra并安装brew以获得一些软件包.以前我使用LFTP更快地同步远程服务器上的文件.但是,升级到Sierra后,brew无法再安装LFTP.使用后
brew install lftp
Run Code Online (Sandbox Code Playgroud)
我得到以下输出和错误
Checking out v1.0.1 in /usr/local/Homebrew...
To checkout v1.0.1 in /usr/local/Homebrew run:
'cd /usr/local/Homebrew && git checkout v1.0.1
Error: No available formula with the name "lftp"
==> Searching for similarly named formulae...
This similarly named formula was found:
homebrew/x11/curlftpfs ?
To install it, run:
brew install homebrew/x11/curlftpfs ?
==> Searching taps...
Error: No formulae found in taps.
Run Code Online (Sandbox Code Playgroud)
我相信它找不到公式......但我不确定为什么.有人知道解决方案吗?
我只安装了readline 7,我找不到在macOS Sierra上安装第6版的单一方法.这是尝试运行时的错误rails c:
/Users/akashagarwal/.rvm/gems/ruby-2.3.0@global/gems/activesupport-5.0.0.1/lib/active_support/dependencies.rb:293:in`requirement':dlopen(/Users/akashagarwal/.rvm /rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle,9 ):未加载库:/usr/local/opt/readline/lib/libreadline.6.dylib(LoadError) )
参考:/Users/akashagarwal/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle原因:图片未找到 - /Users/akashagarwal/.rvm/rubies /ruby-2.3.0/lib/ruby/2.3.0/x86_64-darwin15/readline.bundle
我可以在不更新Mac操作系统的情况下安装xcode 8.3,即"OS X El Capitan"(版本10.11.6)
我无法在Apple的网站上找到任何参考,但是,这个链接说我做不到.
现在,我安装了Xcode 8.2.1.
我无法在MacOS 10.12上启动终端
我收到以下消息:
[forkpty: Resource temporarily unavailable][Could not create a new process and open a pseudo-tty.]
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
我可以启动一个应用程序,如:
dotnet myapp.dll
Run Code Online (Sandbox Code Playgroud)
但是我如何对它进行时间或内存分析呢?在Visual Studio for Mac社区版中,没有"配置文件"选项显示在运行菜单下(它需要企业).
我基本上在寻找mono --profile=log.net核心2.0中的等价物