我一直在研究一个Xcode项目(通过adhoc安装安装,供我公司内部使用)几年了,我从第1天起就启用了源代码控制.所有工作都完美无缺,直到iOS 8发布,我决定将其转换为iOS 8,同时在项目上留下备份.因此,我将原始文件夹重命名为bimpd_old并开始修改新项目.我是git的初学者,我不知道这样做可能会破坏源代码控制.这样做之后(同时仍然在两个项目上工作)我的源代码控制将不再提交抱怨项目不受版本控制.
我在互联网上尝试了许多解决方案,建议删除.svn/.git文件夹,禁用和重新启用源代码控制,运行git init,添加*,提交..我也尝试删除bimPd.xccheckout编辑:我已经尝试过以下解决方案:如何解除Xcode 5项目的工作副本与SVN服务器的关联,该服务器没有成功.可能该解决方案仅适用于Xcode5,而我的问题是在Xcode 6.3中
我只想丢失所有版本历史记录,分离/删除所有工作副本,并从今天开始启动新版本控制.
我怎样才能做到这一点?
笔记:


我有一个用Objective c编码的项目,它使用Apple提供的SimplePing.h.
代码运行完美,直到我将Xcode更新为v9.0; 它不是在Apple SimplePing.h提供的SimplePing.h文件中的错误编译
C++需要所有声明的类型说明符
在SimplePing.h中的每一行上生成错误
check_compile_time(sizeof(IPHeader) == 20);
check_compile_time(offsetof(IPHeader, versionAndHeaderLength) == 0);
check_compile_time(offsetof(IPHeader, differentiatedServices) == 1);
check_compile_time(offsetof(IPHeader, totalLength) == 2);
check_compile_time(offsetof(IPHeader, identification) == 4);
check_compile_time(offsetof(IPHeader, flagsAndFragmentOffset) == 6);
check_compile_time(offsetof(IPHeader, timeToLive) == 8);
check_compile_time(offsetof(IPHeader, protocol) == 9);
check_compile_time(offsetof(IPHeader, headerChecksum) == 10);
check_compile_time(offsetof(IPHeader, sourceAddress) == 12);
check_compile_time(offsetof(IPHeader, destinationAddress) == 16);
Run Code Online (Sandbox Code Playgroud)
SimplePing.h类包括以下类
#include <AssertMacros.h> // for __Check_Compile_Time
Run Code Online (Sandbox Code Playgroud)
其中check_compile_time的代码定义如下:
#ifndef __Check_Compile_Time
#ifdef __GNUC__
#define __Check_Compile_Time( expr ) \
extern int compile_time_assert_failed[ ( expr ) ? 1 : -1 ] __attribute__( …Run Code Online (Sandbox Code Playgroud)