当使用解析iOS sdk v1.2.20时,多个线程试图访问[PFUser currentUser]时偶尔会出现死锁
看起来每当我进行PFQuery调用或PFCloud函数调用时,这些操作也会访问[PFUser currentUser],因此如果从不同的线程进行查询,则会增加死锁的可能性.
其他人找到了解决方案,我怀疑解析甚至意识到问题,因为他们很久以前就关闭了这些相关问题:https: //www.parse.com/questions/parse-locking-up-the-main-thread-可能死锁 这一个:https: //www.parse.com/questions/occasional-freezing-at-pfuser-currentuser
为什么这不起作用?我首先FacebookSDK-3.0.8.pkg从链接安装:https:
//developers.facebook.com/ios/downloads/
安装后,我注意到该文件夹已创建 ~/Documents/FacebookSDK/...
我在XC 4.4.1和XC 4.5 B4中打开示例项目,并获取链接器错误:
ld: framework not found FacebookSDK
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
我正在运行Mountain Lion,并且过去能够编译旧的facebook SDK(虽然不是Mountain Lion).
然后我安装了FacebookSDK-3.0.0.pkg包并得到了相同的结果.
编辑 这是完整的链接器输出:
Ld /Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Products/Debug-iphonesimulator/HelloFacebookSample.app/HelloFacebookSample normal i386
cd /Users/kevinw/Documents/FacebookSDK/Samples/HelloFacebookSample
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Products/Debug-iphonesimulator -F/Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Products/Debug-iphonesimulator -F/Users/kevinw/Documents/FacebookSDK -F/Users/kevinw/Documents/FacebookSDK -filelist /Users/kevinw/Library/Developer/Xcode/DerivedData/HelloFacebookSample-amabhzuzewakecehidtetsnstpuu/Build/Intermediates/HelloFacebookSample.build/Debug-iphonesimulator/HelloFacebookSample.build/Objects-normal/i386/HelloFacebookSample.LinkFileList -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -lsqlite3.0 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=40000 -weak_framework Accounts -framework UIKit -framework Foundation -framework CoreGraphics …Run Code Online (Sandbox Code Playgroud) 我更新到Parse(1.3.0.1),它不会编译,因为在PFFacebookUtils.h中有一个错误在这行上的包含:
#import <FacebookSDK/FacebookSDK.h>
Run Code Online (Sandbox Code Playgroud)
我安装了Facebook SDK,然后添加了FacebookSDK框架,我就可以编译应用了.但是,由于重复的符号,应用程序没有链接.这是错误转储:
ld: warning: directory not found for option '-L/Users/kevinw/Documents/IOS/JSwipe/Pods/build/Debug-iphoneos'
duplicate symbol _OBJC_IVAR_$_BFAppLinkTarget._URL in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkTarget.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkTarget._appStoreId in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkTarget.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkTarget._appName in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkTarget.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o)
duplicate symbol _OBJC_METACLASS_$_BFAppLinkTarget in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkTarget.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o)
duplicate symbol _OBJC_CLASS_$_BFAppLinkTarget in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkTarget.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkTarget.o)
duplicate symbol _OBJC_IVAR_$_BFTaskCompletionSource._task in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFTaskCompletionSource.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFTaskCompletionSource.o)
duplicate symbol _OBJC_CLASS_$_BFTaskCompletionSource in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFTaskCompletionSource.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFTaskCompletionSource.o)
duplicate symbol _OBJC_METACLASS_$_BFTaskCompletionSource in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFTaskCompletionSource.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFTaskCompletionSource.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererView._includeStatusBarInSize in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkReturnToRefererView.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererView.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererView._labelView in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkReturnToRefererView.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererView.o)
duplicate symbol _OBJC_IVAR_$_BFAppLinkReturnToRefererView._closeButton in:
/Users/kevinw/Library/Developer/Xcode/DerivedData/JSwipe-ctqmquxfahqdyufengcbtphxyoar/Build/Products/Debug-iphonesimulator/libPods.a(BFAppLinkReturnToRefererView.o)
/Users/kevinw/Documents/FacebookSDK/FacebookSDK.framework/FacebookSDK(BFAppLinkReturnToRefererView.o)
duplicate …Run Code Online (Sandbox Code Playgroud) 我看到有一个类ASTextKitRenderer,但我不确定这个的正确用法以及如何将它导入到我的swift项目中.
我想为ASTextNode重新创建UILabel的minimumScaleFactor的行为