Xcode 合并分支报错

原理和操作步骤见如下转载的两篇文章,

我所使用的 svn 客户端软件是 Mac 下面的 Versions.app v1.06

这个版本包含一个多人开发的bug

bug 的解决方案见我之前转载的两篇文章~

另外就是如本文转载的第一篇文章,我也深受 UserInterfaceState.xcuserstate 文件频繁更新带来的困扰,

要免除该困扰,可在 Versions 的配置文件  ~/.subversion/config 中忽略对 xcuserstate 类型文件的版本控制。

另外,Versions 的配置文件是处于隐藏目录的,可在 Finder 中通过 cmd + shift + g 直接跳到隐藏目录~

************************ 分割线 ***************************

文章标题:

摆脱 UserInterfaceState.xcuserstate给Xcode 版本控制(git)带来的困扰

转载自:http://alexrezit.42qu.com/10280223

今天在Xcode中Commit的时候UserInterfaceState.xcuserstate这个文件几秒钟更新一次, 搅得人不得安宁, 用.gitignore无效. 于是, 在终端中输入:

$ git rm --cached iLedger.xcodeproj/project.xcworkspace/xcuserdata/Alex.xcuserdatad/UserInterfaceState.xcuserstate
$ git commit -m "Removed the stupid strange file that shouldn‘t be tracked"
$ git push

搞定!

************************ 分割线 ***************************

文章标题:

XCode SVN

转载自:http://renxiangzyq.iteye.com/blog/850762

  1. Create the project in XCODE.
  2. Setup subversion in XCODE and select the subversion repository for this project.
  3. Use Xcode SCM > Repository and click on the IMPORT icon. This will move the local copy to the subversion repository.
  4. Now delete your local copy (or move it to another location just in case).
  5. Finally CHECKOUT the project from subversion (this will create the subversion .svn folders, …).
  6. Reselect the subversion repository for this project.
  7. Commit the entire project.

第一步,配置Subversion
Xcode中SVN使用时需要配置Subversion。Leopard中自带了SVN,但Xcode的项目文件中,并不是所有文件都适于加入SVN中进 行管理,比如编译后的文件和编译过程中产生的文件,这些文件不属于源代码,应该告诉svn忽略掉,方法:编辑~/.subversion/config文 件
1.找到global-ignores一行,去掉注释,编辑成
global-ignores=build*~.nib*.so*.pbxuser*.mode*.perspective*
Xcode项目文件中有些文件是文本文件,需要告诉SVN,因为SVN能更好地管理文本文件(谁用谁知道)
2.找到enable-auto-props=yes把注释去掉,在[auto-props]Section声明以下文本文件
*.mode*=svn:mime-type=text/X-xcode
*.pbxuser=svn:mime-type=text/X-xcode
*.perspective*=svn:mime-type=text/X-xcode
*.pbxproj=svn:mime-type=text/X-xcode

时间: 2024-08-05 03:10:06

Xcode 合并分支报错的相关文章

hg 切换分支报错

# hg up stable local changed path/to/file/file.ext which remote deleted remote: use (c)hanged version or (d)elete? c 这是目录权限的问题... hg 切换分支报错

git 拉取远程分支报错(fatal: '' is not a commit and a branch '' cannot be created from it)

问题描述从远程git上拉取某一个分支,然后报错,拉取不了这个分支. 拉取分支的命令: git checkout -b xxx-static-19 origin/xxx-static-19 其中xxx-static-19是分支名. 报错 fatal: 'origin/xxx-static-19' is not a commit and a branch 'xxx-static-19' cannot be created from it 解决重新拉取数据,git pull ,然后再切回分支 git

git——创建分支后,切换分支报错(error: pathspec 'master' did not match any file(s) known to git)

error: pathspec 'master' did not match any file(s) known to git 解决办法: 1.查看分支 git branch -a 2.获取所有分支 git fetch 3.切换到远程master分支: git checkout origin/master 4.执行git branch,可以看到我们想切换的那个分支 5.从当前的分支切换并新建分支,可以理解为即将新创建的分支是由当前分支出来的 git checkout -b 新分支名 6.建立本地

Xcode 证书问题报错锦集

Xcode因为证书问题经常报的那些错 字数495 阅读13559 评论20 喜欢47 去年才开始做 iOS开发的时候,因为证书问题 Xcode 经常报这样或那样的错,经过一年多的实践,现在看见 Xcode 报错已经心平气和了,经常报的错就那么多,整理一下. 1. 确认下证书是不是开发证书,如果是发布证书就会出现这样的提示. 2. 证书失效了,去开发者中心重新生成一个. 3. 包标识符不与描述文件包含的包标识符不一致,按照它的提示换一下就好了,最好不要点 Fix Issue,点完后 Xcode 会

xcode的类库报错,如何解决

首先看一下自己报错的原因,是当前UIkit框架还是别的,然后按住Command+shift+G 把"/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/Foundation.framework/Headers" 根据自己的需要查找指定的文件夹 这段代码的意思就是/

xcode编译运行报错纪录(持续更新)

---恢复内容开始--- 1. Undefined symbols for architecture i386: "_deflate", referenced from: -[NSData(AMapCloudCompression) maZlibDeflate] in AMapCloudKit -[NSData(AMapCloudCompression) maGZipDeflate] in AMapCloudKit -[NSData(MACompression) maZlibDefla

git切换分支报错解决

今天使用git切换分支的时候总是报这种错误. 解决办法: 在项目文件夹中.git文件夹(这是个隐藏文件夹,需要在文件管理导航栏--工具--文件夹选项--查看--勾选显示隐藏文件夹)找到不能创建的文件index.lock重新git checkout dev即可 原文地址:https://www.cnblogs.com/bigDipper/p/8981792.html

XCODE 6 经常报错 “Could not inspect the application package”

XCODE 6.01,真机运行时,总是是 第一次 蹦出弹窗, 提示:App installation failedCould not inspect the application package. 再来一次就可以运行了.但是,一直反复出现. 为什么呢? 分析后发现:项目一开始是没有问题的.后来我把工程名改成中文,就出现这个问题了.所以只要恢复成之前的英文就好了.

Xcode CoreData 存储报错问题。

因项目接口变动,导致之前的CoreData字段需要调整.于是记录下出错的流程和解决方案.步骤如下: 1. 先在 *****.xcdatamodeld 文件中添加需要调整的字段.并更新本地model实体. 2. 我的流程是接到消息后本地存储在CoreData里面,然后UI展示(具体消息推送和接收问题,之前已经做好了,不在这里讲解.).因我是真机调试,收到消息推送后,但是一直无数据.于是想去本地sqlite里面查看是否已经将消息存储完毕,于是捕捉到路径并执行进入sqlite时问题来了: sqlite