杂的文
作者: CouldHll
CocoaPods错误
问题描述:用“pod update”更新,遇到如下错误
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.
问题解决:
A bug was found in libgit2 and they had to execute a force push on the specs repo. This is what broke everyone's CocoaPods setup.
You can find the official post about this issue on the CocoaPods blog :http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/
The recommended way to fix your setup is to execute the following commands :
$ pod repo remove master
$ pod setup
If that doesn't work, you can also delete manually all your cached specs :
$ rm -rf ~/.cocoapods/
$ pod setup
	Xcode创建动态库
1.用Xcode打开如下2个xcspec文件:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Specifications/iPhoneOSPackageTypes.xcspec
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/MacOSX Package Types.xcspec
2.把MacOSX Package Types.xcspec中Identifier为com.apple.package-type.mach-o-dylib的item复制到iPhoneOSPackageTypes.xcspec
3.把MacOSX Product Types.xcspec中Identifier为com.apple.product-type.library.dynamic的item复制到iPhoneOSProductTypes.xcspec
以上为真机,模拟器类似,路径在:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications/
1.把/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/Project Templates/Framework & Library/Cocoa Touch Static Library.xctemplate整个文件夹复制并改名为Cocoa Touch Dynamic Library.xctemplate
2.修改Description中的"a static library"为"a dynamic library"
修改Identifier中的"cocoaTouchStaticLibrary"为"cocoaTouchDynamicLibrary"
修改Description中的".static"为".dynamic"
1.Installation Directory设置为@executable_path/
《希区柯克推理经典集 : 后窗》
《国境以南 太阳以西》
《十万个冷笑话》
看过第二季第二集
《金刚狼2》
《旋转木马鏖战记》
ARC forbids Objective-C objects in struct
问题描述:Xcode报错ARC forbids Objective-C objects in struct
问题解决:问题是struct中不支持NSObject对象,所以在前面加入__unsafe_unretained脱离ARC解决。





