You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Google API开发iOS应用时启用Google Calendar API遇404错误求助

How to Fix 404 Error When Enabling Google Calendar API for Your iOS Swift App

Hey there, sorry to hear you're hitting that frustrating 404 error when trying to enable the Calendar API via the quickstart button—those direct links can sometimes break or get outdated as Google updates their docs. Here's a reliable manual way to get it set up properly:

  • Step 1: Open the Google Cloud Console
    Sign in with the Google account you want to use for your iOS app. This is the main dashboard where you manage all Google Cloud services and APIs for your projects.

  • Step 2: Select or Create a Project
    If you already have a project tied to your iOS app, pick it from the project dropdown at the top of the page. If not, click the dropdown, choose "New Project", give it a descriptive name, and follow the prompts to finish creating it.

  • Step 3: Enable the Google Calendar API
    Once your project is selected, head to the "APIs & Services" section in the left sidebar (look for the puzzle piece icon). Click into it, then hit the "Enable APIs and Services" button at the top of the page.
    In the search bar, type Google Calendar API and select it from the results. On the API's detail page, click the "Enable" button—this should work smoothly without any 404 issues.

  • Step 4: Set Up OAuth 2.0 Credentials (Critical for iOS)
    After enabling the API, you need to create OAuth credentials so your app can authenticate users with Google:

    1. From the "APIs & Services" sidebar, navigate to "Credentials".
    2. Click "Create Credentials" and select "OAuth client ID".
    3. If you haven't set up an OAuth consent screen yet, you'll be prompted to do so first. Fill in the required fields (like app name, user support email) and save the screen configuration.
    4. For the application type, choose iOS, then enter your app's exact bundle ID (make sure this matches what's configured in your Xcode project).
    5. Click "Create" to generate your client ID. You can then download the GoogleService-Info.plist file and add it to your Xcode project as outlined in the quickstart guide.

A quick troubleshooting tip: If you still run into issues, double-check that you're signed into the correct Google account and that your project is selected properly. Sometimes cached browser data can cause odd errors—try clearing your cache or using an incognito window if the problem persists.

内容的提问来源于stack exchange,提问作者Kirill

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 04:14:27