【发布时间】:2016-09-14 23:44:07
【问题描述】:
我正在尝试按照 Google 开发人员页面上的说明安装 GCM 示例 Xcode 项目 https://developers.google.com/cloud-messaging/ios/start
但在第 1 步失败并显示此消息:
[!] Invalid `Podfile` file: [!] The specification of `link_with` in the Podfile is now unsupported, please use target blocks instead..
完整的成绩单是这样的:
$ pod try Google --no-repo-update
Trying Google
1: Samples/admob/AdMobExample.xcodeproj
2: Samples/analytics/AnalyticsExample.xcodeproj
3: Samples/appinvites/AppInvitesExample.xcodeproj
4: Samples/gcm/GcmExample.xcodeproj
5: Samples/signin/SignInExample.xcodeproj
Which project would you like to open
4
Performing CocoaPods Installation
[!] Invalid `Podfile` file: [!] The specification of `link_with` in the Podfile is now unsupported, please use target blocks instead..
# from /private/var/folders/d5/f4qpz1r530xbw5cyrbfk094h0000gp/T/CocoaPods/Try/Google/Samples/gcm/Podfile:10
# -------------------------------------------
# # and delete the link_with command.
> link_with 'GcmExample', 'GcmExampleSwift'
# ------------------------------------------
我已尝试按照错误消息中的建议修改 podfile,但即使使用 --no-repo-update option 运行并产生相同的错误,也会重新生成 Podfile。
我之前没有使用 Pod 的经验,因此欢迎提出任何建议。
【问题讨论】:
标签: ios google-cloud-messaging cocoapods