PhoneticContacts icon indicating copy to clipboard operation
PhoneticContacts copied to clipboard

Xcode 10 报错

Open MOOnLyer opened this issue 7 years ago • 4 comments

有类似 'XXX' is deprecated: Please use String or Substring directly 的报错 然后无法运行

MOOnLyer avatar Oct 08 '18 23:10 MOOnLyer

AddressBook framework 已经被废弃了,现在应该用 Contacts framework。我试了一下,貌似在命令行中无法唤起通讯录权限的申请框,也许需要把这个项目改成 macOS 的 GUI 程序才行。有空再试了。

lexrus avatar Oct 09 '18 01:10 lexrus

https://github.com/iaugux/phonetic 你可以用这个开源项目实现同样的功能,App Store 上可以下载,在手机上跑一遍后,iCloud 会同步通讯录。

lexrus avatar Oct 09 '18 01:10 lexrus

我修改成 Contacts.framework 了,编译完在终端里运行,直接在xcode里运行权限过不去。 https://gist.github.com/ifplusor/06ac3022f6f04b542204cfca7a05435f

ifplusor avatar Dec 08 '18 06:12 ifplusor

我在iterm下执行,可以正常申请权限。但这个权限是给iterm的,不是给编译出来的目标程序的。

ifplusor avatar Dec 08 '18 06:12 ifplusor