Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 10 报错 #10

Open
MOOnLyer opened this issue Oct 8, 2018 · 4 comments
Open

Xcode 10 报错 #10

MOOnLyer opened this issue Oct 8, 2018 · 4 comments

Comments

@MOOnLyer
Copy link

MOOnLyer commented Oct 8, 2018

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

@lexrus
Copy link
Owner

lexrus commented Oct 9, 2018

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

@lexrus
Copy link
Owner

lexrus commented Oct 9, 2018

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

@ifplusor
Copy link

ifplusor commented Dec 8, 2018

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

@ifplusor
Copy link

ifplusor commented Dec 8, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants