
Apple ๊ฐ๋ฐ์ ๊ณ์ ๊ฐฑ์
์… ์ด๋ฒ ๊ธฐ๊ฐ์๋ ๊ณผ์ฐ Mac App Store์ ์ ์ถํ ์ ์์๊น?
์… ์ด๋ฒ ๊ธฐ๊ฐ์๋ ๊ณผ์ฐ Mac App Store์ ์ ์ถํ ์ ์์๊น?
iOS์ social / account framework์ ์ด์ฉํ ํ์ด์ค๋ถ ๋ก๊ทธ์ธ ๊ตฌํ์ ๋ค์๊ณผ ๊ฐ์ ์ํฉ์ด ๋ฐ์ํ์๋ค.
fb://
๋ก ์์ํ๋ url์ ์ ์ ๊ฐ๋ฅํ์ง ์ฌ๋ถ, ์ฆ Facebook app์ด ์ค์น๋์๋์ง ํ์ธํ๋ ค๊ณ ๋ค์์ ์ฝ๋๋ฅผ ํธ์ถํ์๋ค.
-(BOOL) functionName {
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fb://]]) {
NSString *urlString = request.URL.absoluteString;
if ([@https://m.facebook.com/plugins/login_success.php" isEqualToString:urlString]) {
[self accountStore];
return NO;
}
return YES:
}
return YES;
}
ํ์ง๋ง ์๋์ ๊ฐ์ ์ค๋ฅ ๋ฉ์ธ์ง๋ฅผ ์ค๊ธฐ์ฐจ๊ฒ ๋ฑ์ด๋๋ค.
2015-08-24 21:57:23.219 meerkat[277:20308] -canOpenURL: failed for URL: “fb://” โ error: “This app is not allowed to query for scheme fb”
ํ์ฌ OS X El Capitan beta 6(15A244d)๊ณผ Xcode 7 beta 5์์ simulator crash ๋ฐ storyboard๋ฅผ ์ด ์ ์์ ๊ฒฝ์ฐ์๋ ์๋์ ๊ฒฝ๋ก์ ์๋ ๊ตฌ ๋ฒ์ ์ simulator๋ฅผ ์ญ์ ํ Xcode๋ฅผ ์ฌ๊ธฐ๋ ํ๋ฉด ๋๋ค.
/Library/Developer/CoreSimulator/Profiles/Runtimes
๋์ ๊ฒฝ์ฐ์๋ ๋ค์๊ณผ ๊ฐ์ simulator ํด๋๊ฐ ์์๊ณ , ๋ชจ๋ ์ญ์ ํ ํ Xcode๋ฅผ ์ฌ๊ธฐ๋ ํ๋ ์ ์์ ์ผ๋ก ์๋ํ์๋ค.
์ฐธ๊ณ : Apple Developer Forums