我昨天将我的 Xcode 更新到 Xcode 8.0,但我的项目不会提交。当我转到 Source Control > Commit 时:它没有显示任何文件,所以我无法按下提交按钮。
这是它的样子:
这就是我的“git status”所说的:
在分支大师 您的分支领先于 'Github/Master' 1 次提交。 (使用“git push”发布你的本地提交) 未为提交暂存的更改: (使用“git add ...”来更新将要提交的内容) (使用 "git checkout -- ..."丢弃工作目录中的更改)
modified: MyProject.xcodeproj/project.pbxproj
modified: MyProject.xcodeproj/xcuserdata/SkkN.xcuserdatad/xcschemes/MyProject.xcscheme
modified: MyProject/AppDelegate.swift
modified: MyProject/AuthenticationController.swift
modified: MyProject/BaseController.swift
modified: MyProject/Button.swift
modified: MyProject/Checklist.swift
modified: MyProject/ChecklistCell.swift
modified: MyProject/ContentCell.swift
modified: MyProject/ContentsList.swift
modified: MyProject/ControlBar.swift
modified: MyProject/DashboardController.swift
modified: MyProject/DescriptionView.swift
modified: MyProject/DropdownMenu.swift
modified: MyProject/DropdownMenuCell.swift
modified: MyProject/IconLabel.swift
modified: MyProject/ImageButton.swift
modified: MyProject/Info.plist
modified: MyProject/Label.swift
modified: MyProject/MenuCell.swift
modified: MyProject/NavigationBar.swift
modified: MyProject/NavigationMenu.swift
modified: MyProject/NotificationBar.swift
modified: MyProject/NotificationsButton.swift
modified: MyProject/PopUp.swift
modified: MyProjectHoop/ProfileController.swift
modified: MyProject/ProfileTab.swift
modified: MyProject/ProfileTabsView.swift
modified: MyProject/StorageCell.swift
modified: MyProject/StorageChart.swift
modified: MyProject/StorageView.swift
modified: MyProject/SummaryCell.swift
modified: MyProject/SummaryView.swift
modified: MyProject/TextButton.swift
modified: MyProject/TextField.swift
modified: MyProject/Tools.swift
未跟踪的文件: (使用“git add ...”来包含将要提交的内容)
.gitattributes
.gitignore
MyProject.xcworkspace/
MyProject/Activity.swift
MyProject/ActivityLog.swift
MyProject/ActivityLogCell.swift
MyProject/Assets.xcassets/ActivityDayIcon.imageset/
MyProject/Assets.xcassets/ActivityFirstDayIcon.imageset/
MyProject/Assets.xcassets/ActivityIcon.imageset/
MyProject/Assets.xcassets/AppIcon.appiconset/Icon-40.png
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/AppIcon.appiconset/Icon-76.png
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/AppIcon.appiconset/Icon-Small.png
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/AppIcon.appiconset/[email protected]
MyProject/Assets.xcassets/Background.imageset/Background.png
MyProject/Assets.xcassets/DummyCompanyLogo.imageset/
MyProject/DropDownList.swift
MyProject/FontCell.swift
MyProject/FontLibraryTab.swift
MyProject/FontList.swift
MyProject/GeneralInfosTab.swift
MyProject/MyProject-Bridging-Header.h
MyProject/ManageDataTab.swift
MyProject/NotificationsChecklist.swift
MyProject/OpeningHoursPopUp.swift
MyProject/ProfileActivityTab.swift
MyProject/ProfileNotificationsTab.swift
MyProject/SecurityTab.swift
MyProject/SettingsController.swift
MyProject/SettingsNotificationsTab.swift
MyProject/SettingsTabsView.swift
MyProject/TabsView.swift
MyProject/WeekdaysTab.swift
Podfile
Podfile.lock
没有添加到提交的更改(使用“git add”和/或“git commit -a”)
请帮忙。
更新 1
我试图复制错误,并且它也发生在我的旧项目中。对于新项目(单独或在旧工作区中),Xcode 会正确报告文件的状态,并且可以提交。
(我现在正试图找出为什么在旧项目中无法从 Xcode 内部执行 git-commit...)
我没有找到任何解决方案,所以我安装了 Xcode 7.3.1
所以现在我使用 Xcode 8.0 进行编码,并打开 Xcode 7.3.1 提交并推送到我的 Github 存储库。它有效。
关于ios - 更新到 8 后 Xcode 不会提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39591943/
欢迎光临 OStack程序员社区-中国程序员成长平台 (https://ostack.cn/) | Powered by Discuz! X3.4 |