苹果

Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. With 4.2, this worked well enough, however with the upgrade to Xcode 4.3, I am now being prompted for an authorized user to 'analyze other processes'. No user is ever actually authenticated, even if the correct credentials are granted. I get the following error: Failed to authorize rights ( 0x20 ) with status : - 60007. 2012 - 02 - 27 19 : 30 : 37.232 instruments [ 54151 : 1c03 ] Failed to connect to

Using SPARQL to query DBPedia Company Information

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to query DBPedia using SPARQL only to find company information such as a description, and a logo. I'm rather lost with devising the SPARQL Query to do this. SELECT DISTINCT ?subject ?employees ?homepage WHERE { ?subject rdf:type <http://dbpedia.org/class/yago/Company108058098> . ?subject dbpedia2:numEmployees ?employees FILTER ( xsd:integer(?employees) >= 50000 ) . ?subject foaf:homepage ?homepage . } ORDER BY DESC(xsd:integer(?employees)) LIMIT 20 I have come across the above query, which finds companies with over 50,000

Sticker pack crashes iMessage on simulator but not on iPhone

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Created a sticker pack in Xcode following Apple's online directions and video. All images are correct dimensions and well below file size thresholds. If I build and run the sticker pack to my physical iPhone it all works flawlessly. If I build and run the sticker pack on simulator, to any simulated iPhone/iPad, iMessages launches, the icon for my sticker pack appears and then iMessage crashes. I receive the system error: "MobileSMS quit unexpectedly." I'm running Xcode Version 9.0.1 (9A1004) on MacOS High Sierra 10.13. The error generated by

How to create a USDZ file?

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I tried to look at the main documentation at http://graphics.pixar.com/usd/docs/index.html and http://graphics.pixar.com/usd/docs/Usdz-File-Format-Specification.html but could not find the details to create a usdz file. I can get some sample USD files from http://graphics.pixar.com/usd/downloads.html How can we create one? 回答1: A gallery of usdz files are provided by Apple at the url below https://developer.apple.com/arkit/gallery/ You need a device with iOS12 beta installed for the models to be viewable on your mobile device.

Pandas DataFrame Window Function

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to manipulate my data frame similar to how you would using SQL window functions. Consider the following sample set: import pandas as pd df = pd.DataFrame({'fruit' : ['apple', 'apple', 'apple', 'orange', 'orange', 'orange', 'grape', 'grape', 'grape'], 'test' : [1, 2, 1, 1, 2, 1, 1, 2, 1], 'analysis' : ['full', 'full', 'partial', 'full', 'full', 'partial', 'full', 'full', 'partial'], 'first_pass' : [12.1, 7.1, 14.3, 19.1, 17.1, 23.4, 23.1, 17.2, 19.1], 'second_pass' : [20.1, 12.0, 13.1, 20.1, 18.5, 22.7, 14.1, 17.1, 19.4], 'units' :

How can I reload the com.apple.systemuiserver preferences into the SystemUIServer application?

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For my Mac OSX application, I have a feature that removes the system clock in the upper right hand corner of the screen when a button is clicked. The preferences that control which system menus are displayed (including the system clock) is stored in ~/Library/Preferences/com.apple.systemuiserver.plist. I was able to update the relevant preferences in that file to remove the system clock. However, the SystemUIServer application needs to be restarted so that the new preferences can be reloaded and the clock can be removed. Here is the code I

Programming for the Apple infared remote controls

匿名 (未验证) 提交于 2019-12-03 08:51:18
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How do I get started with programming for the Apple infared remote control? To start with, I only intend to support one control, and one type of receiver, that on the current unibody MacBooks. What I mean by programming, is, how do I get started with writing an OSX, preferably Cocoa if there are APIs, app which intercepts commands from the control, and then sends commands to the OS. For example, as a start, I'd like to be able to simply pick up a key press from the remote control, and then emit a keyboard command to the OS. Like, say I've

com.apple.NSURLSession-work EXC_BAD_ACCESS Crash debugging

匿名 (未验证) 提交于 2019-12-03 08:48:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm seeing the following crash report, but it's not reproducible. How would I go about debugging it? Is this an AFNetworking issue? I'm using version 2.4.1. Crashed: com.apple.NSURLSession-work EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x0000000000000000 Thread : Crashed: com.apple.NSURLSession-work 0 CoreFoundation 0x0000000184aad978 CFDictionaryGetValue + 56 1 Foundation 0x0000000185aa9300 _NSSetLongLongValueAndNotify + 72 2 Foundation 0x0000000185aa9300 _NSSetLongLongValueAndNotify + 72 3 CFNetwork 0x0000000184543468 -[__NSCFLocalSessionTask

Error creating LLDB target at path, Xcode 6 GM seed

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm getting this error whenever I build in Xcode 6 GM Seed. It seems to be making my app insanely slow. What exactly does this mean and how do I fix it? I had the following error: Warning: Error creating LLDB target at path '.....'- using an empty LLDB target which can cause slow memory reads from remote devices. PS : im not able to run my app, its stuck on the splash screen 回答1: There is a thread in the Apple Developer Forum, https://devforums.apple.com/message/1010068#1010068 that describes how to diagnose this issue. I had his issue for

Apple App Loader/iTunes Connect Problem

匿名 (未验证) 提交于 2019-12-03 08:46:08
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I recently signed up for apple's iOS dev program. The account is activated and ready. However when I try to upload an app, I go to iTunes connect, and it says: "Apple ID does not have permission to access iTunes Connect." and in app loader, it says: "Unable to find registered user with username " user@domain.com " (1001)" Could someone tell me whats wrong? Thanks! 回答1: I got the same error. It turned out that the username field supports more than 1 string and although it showed me only the correct username, there was the second hidden line.