iOS

iOS9 / Xcode7์—์„œ Facebook๋“ฑ ๋‹ค๋ฅธ app์˜ URL Scheme ํ˜ธ์ถœ ์‹คํŒจ

JoonHo Son
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”

Xcode 7 beta 4~5 ๋ฒ„์ „์—์„œ Storyboard ๋ฐ simulator๊ฐ€ ๋™์ž‘ํ•˜์ง€ ์•Š์„ ๊ฒฝ์šฐ

JoonHo Son
ํ˜„์žฌ OS X El Capitan beta 6(15A244d)๊ณผ Xcode 7 beta 5์—์„œ simulator crash ๋ฐ storyboard๋ฅผ ์—ด ์ˆ˜ ์—†์„ ๊ฒฝ์šฐ์—๋Š” ์•„๋ž˜์˜ ๊ฒฝ๋กœ์— ์žˆ๋Š” ๊ตฌ ๋ฒ„์ „์˜ simulator๋ฅผ ์‚ญ์ œํ›„ Xcode๋ฅผ ์žฌ๊ธฐ๋™ ํ•˜๋ฉด ๋œ๋‹ค. /Library/Developer/CoreSimulator/Profiles/Runtimes ๋‚˜์˜ ๊ฒฝ์šฐ์—๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ simulator ํด๋”๊ฐ€ ์žˆ์—ˆ๊ณ , ๋ชจ๋‘ ์‚ญ์ œํ•œ ํ›„ Xcode๋ฅผ ์žฌ๊ธฐ๋™ ํ•˜๋‹ˆ ์ •์ƒ์ ์œผ๋กœ ์ž‘๋™ํ•˜์˜€๋‹ค. iOS 7.1.simruntime iOS 8.1.simruntime iOS 8.2.simruntime ์ฐธ๊ณ  : Apple Developer Forums