SwiftUITeachingTeam
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Write
        • Owners
        • Signed-in users
        • Everyone
        Owners Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Help
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Write
Owners
  • Owners
  • Signed-in users
  • Everyone
Owners Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 在Xcode開啟全新專案 本次示範之版本為 **Version 15.4 (15F31d)** ## 筆記大綱 頁面左邊可以快速查看內容 1. 開啟Xcode 2. 選擇模板 3. 提供專案資訊 4. 選擇儲存位置 5. 成功開啟專案 ### 開啟Xcode 首先,開啟Xcode。啟動後,Xcode會顯示一個歡迎的對話視窗,如下圖所示。在這裡選擇「**Create New Project...**」,開始建立一個新的專案。 ![截圖 2024-06-20 下午6.51.08](https://hackmd.io/_uploads/HkwGfsWIR.png) ### 選擇模板 Xcode提供各種不同類型的專案模板,每一個模板都有不同的目的,可以讓你更容易開始開發特定型態的應用程式。點選「**iOS → App**」, 然後按下「**Next**」按鈕。 ![截圖 2024-06-20 下午6.57.19](https://hackmd.io/_uploads/rJJmzoWUC.png) ### 提供專案資訊 接下來就來填寫專案的相關資訊 - Product Name(專案名稱) 顧名思義就是專案內容,把握三個原則 ==第一個字不能是數字== ==名稱中至少要有一個英文字母== ==不建議使用中文名== - Team(團隊) 如果有購買開發者帳號,可以與自己的開發者帳號連結。沒有的話,可以直接略過此項。 - Organization Identifier(組織名稱) 填寫你的團隊,大多數人會填寫自己的網域名稱。例如:com.apple,記得是倒著寫。如果沒有的話,可以填寫自己的gmail或是信箱,例如:tw.edu.fcu.0365@D1234567。如果只是上課練習,那隨便填填也無妨。 - Bundle Identifier(套件識別碼) 應用程式在上架送審時所使用的唯一識別碼。不需要輸入這個選項,Xcode會自動產生。 - Interface(介面) 目前分為Storyboard和SwiftUI,本筆記所教學的是**SwiftIUI**。 - Language(程式語言) 如果Interface選擇Storyboard,則會有Objective-C與Swift。選擇SwiftUI則,則只有Swift選項,因此不用特別更改。 - Storage(儲存模式) 分為SwfitData和Core data,如果有特別選擇,專案將會套入套件,沒有選擇可以後面再進行增加。儲存的部分對於新手來說較為困難,若沒有特別需求,請選擇「**None**」,以免造成混亂。 - Host is CloudKit 若有儲存的需求,可以連接CloudKit儲存。需先選擇Storage,才可以勾選。 - Include Test 若程式有測試需求,才需要勾選。此功能較為進階,需要大量數據傳遞時,才會需要使用。 新手確認欄位: - [ ] Product Name首字不是數字 - [ ] Organization Identifier有填寫 - [ ] Interface選擇SwiftUI - [ ] Language選擇Swift - [ ] Storage選擇None - [ ] include Tests不要勾選 ![截圖 2024-06-20 晚上7.00.18](https://hackmd.io/_uploads/SJjmzj-IA.png) ### 選擇儲存位置 到了最後一步,**選擇專案儲存位置**。另外若有需要使用Git,可以勾選下方「Create Git repository on my Mac」,若沒有需求則不用勾選。 ![截圖 2024-06-20 晚上7.31.43](https://hackmd.io/_uploads/rydVfo-LA.png) ### 成功開啟專案 看到這個畫面,恭喜你已經開始人生第一個iOS App的專案。接下來就開始下一步吧! ![截圖 2024-06-20 晚上7.35.10](https://hackmd.io/_uploads/SyNHzsWIA.png)

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully