Parse与-ObjC冲突

问题描述:今天做TAG的时候,加入Parse并加好相应的frame,还是报如下错误:
Undefined symbols for architecture i386:
"_FBTokenInformationExpirationDateKey", referenced from:
-[PFFacebookTokenCachingStrategy cacheTokenInformation:] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy expirationDate] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setExpirationDate:] in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationTokenKey", referenced from:
-[PFFacebookTokenCachingStrategy accessToken] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setAccessToken:] in Parse(PFFacebookTokenCachingStrategy.o)
"_FBTokenInformationUserFBIDKey", referenced from:
-[PFFacebookTokenCachingStrategy facebookId] in Parse(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setFacebookId:] in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_CLASS_$_FBAppCall", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBRequest", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSession", referenced from:
objc-class-ref in Parse(PFFacebookAuthenticationProvider.o)
"_OBJC_CLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_CLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
"_OBJC_METACLASS_$_FBSessionTokenCachingStrategy", referenced from:
_OBJC_METACLASS_$_PFFacebookTokenCachingStrategy in Parse(PFFacebookTokenCachingStrategy.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
问题解决:
方法一:加入FaceBookSDK.framework(>1M)
方法二:设置单独的静态库,使用-force_load /path/libname.a来替换之前的配置-all_load _ObjC
方法三:使用CocoaPods安装Parse

我选择了第三种方法,还是CocoaPods好啊

Xcode中Git提交问题

问题描述:今天在做TAG App用Xcode中的Git提交代码,出现如下错误:

The working copy "ViewDeck" failed to commit files.

error: pathspec 'IIWrapController.m' did not match any file(s) known to git.
error: pathspec 'IIWrapController.h' did not match any file(s) known to git.
error: pathspec 'IISideController.m' did not match any file(s) known to git.
error: pathspec 'IIViewDeckController.m' did not match any file(s) known to git.
error: pathspec 'IISideController.h' did not match any file(s) known to git.
error: pathspec 'IIViewDeckController.h' did not match any file(s) known to git.

问题解决:用GitHub进行提交,OK了

Undo “New Group from Selection” project

问题描述:今天在做TAG App 时在Project上不小心“New Group from Selection” 了下。然后无法撤销了。。。Project上就一直顶着一个New Group。

问题解决:

  1. close xcode
  2. right click on your project's .xcodeproj, then click "Show Package Contents"
  3. inside .xcodeproj, remove the project.xcworkspace
  4. save it and re-open your xcode project and it would be rebuild the file