• iOS开发实战-仿小红书App开发-1-App创建与Git


    1.新建项目

     2.添加Git仓库

     添加自己的gitHub账号.

     3.Token获取方式:

     Settings.

     Developer Settings.

     获取个人Token.

     填写相关内容.

    得到Token后复制它,拿到Xcode中登录.

     填写相关信息.

     创建后打开GitHub,查看自己的所有仓库,发现小粉书仓库已创建成功!

     4.创建名为.gitignore的文稿,将GitHub的.gitignore粘贴进去.

    1. # Xcode
    2. #
    3. # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
    4. ## User settings
    5. xcuserdata/
    6. ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
    7. *.xcscmblueprint
    8. *.xccheckout
    9. ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
    10. build/
    11. DerivedData/
    12. *.moved-aside
    13. *.pbxuser
    14. !default.pbxuser
    15. *.mode1v3
    16. !default.mode1v3
    17. *.mode2v3
    18. !default.mode2v3
    19. *.perspectivev3
    20. !default.perspectivev3
    21. ## Obj-C/Swift specific
    22. *.hmap
    23. ## App packaging
    24. *.ipa
    25. *.dSYM.zip
    26. *.dSYM
    27. ## Playgrounds
    28. timeline.xctimeline
    29. playground.xcworkspace
    30. # Swift Package Manager
    31. #
    32. # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
    33. # Packages/
    34. # Package.pins
    35. # Package.resolved
    36. # *.xcodeproj
    37. #
    38. # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
    39. # hence it is not needed unless you have added a package configuration file to your project
    40. # .swiftpm
    41. .build/
    42. # CocoaPods
    43. #
    44. # We recommend against adding the Pods directory to your .gitignore. However
    45. # you should judge for yourself, the pros and cons are mentioned at:
    46. # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
    47. #
    48. # Pods/
    49. #
    50. # Add this line if you want to avoid checking in source code from the Xcode workspace
    51. # *.xcworkspace
    52. # Carthage
    53. #
    54. # Add this line if you want to avoid checking in source code from Carthage dependencies.
    55. # Carthage/Checkouts
    56. Carthage/Build/
    57. # Accio dependency management
    58. Dependencies/
    59. .accio/
    60. # fastlane
    61. #
    62. # It is recommended to not store the screenshots in the git repo.
    63. # Instead, use fastlane to re-generate the screenshots whenever they are needed.
    64. # For more information about the recommended setup visit:
    65. # https://docs.fastlane.tools/best-practices/source-control/#source-control
    66. fastlane/report.xml
    67. fastlane/Preview.html
    68. fastlane/screenshots/**/*.png
    69. fastlane/test_output
    70. # Code Injection
    71. #
    72. # After new code Injection tools there's a generated folder /iOSInjectionProject
    73. # https://github.com/johnno1962/injectionforxcode
    74. iOSInjectionProject/

    按下commond+shift+句号,显示隐藏的.gitignore文件,将它拖入Xcode中.

     进行一次提交.

     查看发现提交成功.

  • 相关阅读:
    2w字Spring Cloud最全面试题整理,全是硬货
    腾讯mini项目-【指标监控服务重构】2023-08-22
    2022年最全教程:如何做大数据的采集数据及数据分析?
    Deep Dual-resolution Network 原理与代码解析
    python 性能优化实例练习三 —— 多进程
    Spring Boot 编写 API 的 10条最佳实践
    04_瑞萨GUI(LVGL)移植实战教程之驱动LCD屏(SPI)
    【Unity】Unity 欧拉角、四元数、万向节死锁
    scanf&malloc
    【LeetCode-中等题】59. 螺旋矩阵 II
  • 原文地址:https://blog.csdn.net/LYly_B/article/details/132973874