0
다음 코드로 UserDefaults (지속성 데이터)를 제거하려고 :수 분명하지 UserDefaults 6
이var mainBundle:NSBundle = NSBundle.mainBundle()
var appDomain:NSString = mainBundle.bundleIdentifier!
userDefaults.removePersistentDomainForName(appDomain)
세 번째 문은 컴파일하지만 애플 마하-O 링커 오류가 발생하지 않습니다
을Ld /Users/Alexander/Library/Developer/Xcode/DerivedData/AD62-bxdlketythywrzhfutzehevdbmyx/Build/Products/Debug-iphonesimulator/AD62.app/AD62 normal x86_64
cd /Users/Alexander/Desktop/AD62
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export 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"
...
Undefined symbols for architecture x86_64:
"__TFSs26_forceBridgeFromObjectiveCU__FTPSs9AnyObject_MQ__Q_", referenced from:
__TFC4AD6226ProfileTableViewController13viewDidAppearfS0_FSbT_ in ProfileTableViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
도움을 주시면 감사하겠습니다.
var mainBundle:NSBundle = NSBundle.mainBundle()
userDefaults.removePersistentDomainForName(mainBundle.bundleIdentifier!)
내가 큰 차이를 볼 canot하지만, 그것이 얼마나 그건 :