๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

IOS12

[iOS] Objective-C NSMutableDictionary ๋ฅผ json ํ˜•ํƒœ๋กœ ๋ณ€ํ™˜ iOS (Objective-C) ์—์„œ JSON ํ˜•ํƒœ๋กœ http ํ†ต์‹ ์„ ํ•˜๊ธฐ ์œ„ํ•ด json ํ˜•ํƒœ๋กœ ๋ณ€ํ™˜์„ ํ•˜๋Š” ์ฝ”๋“œ์ด๋‹ค. NSMutableDictionary ํ˜•ํƒœ์˜ ๋ฐ์ดํ„ฐ๋ฅผ NSJSONSerialization ์„ ์ด์šฉํ•ด NSData ๋กœ ๋ณ€ํ™˜ํ•œ ํ›„, ๋‹ค์‹œ NSString ์œผ๋กœ ๋ณ€ํ™˜ํ•œ๋‹ค. NSMutableDictionary *retDic = [[NSMutableDictionary alloc]init]; [retDic setValue:๊ฐ’1 forKey:@"ํ‚ค1"]; [retDic setValue:๊ฐ’2 forKey:@"ํ‚ค2"]; NSData *requestData = [NSJSONSerialization dataWithJSONObject:retDic options:0 error:nil]; NSString *req.. 2021. 10. 6.
[iOS] A build only device cannot be used to run this target. A build only device cannot be used to run this target. Xcode ๋ฅผ ์„ค์น˜ํ•˜๊ณ  ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ๋ฅผ ๋Œ๋ฆฌ๊ณ ์ž ํ•˜์ž.. ์œ„์˜ ๊ฒฝ๊ณ ์™€ ํ•จ๊ป˜ ๋ฐœ์ƒํ•œ ์˜ค๋ฅ˜... ํ˜„์ƒ์€ ์ด๋Ÿฌํ•˜๋‹ค... - ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• 1. Xcode > Preferences... 2. Componenets ์—์„œ Simulator ์˜ iOS ๋ฒ„์ „์„ ์ฒดํฌ ํ•ด ์„ค์น˜ํ•œ๋‹ค 3. Xcode ๋ฅผ ์™„์ „ํžˆ ์ข…๋ฃŒ ํ›„ ์žฌ์‹คํ–‰ ํ•œ๋‹ค. +) 4. 3 ๋ฒˆ์„ ์ง„ํ–‰ ํ–ˆ๋Š”๋ฐ๋„ ๋™์ผํ•œ ํ˜„์ƒ์ด ๋ฐœ์ƒํ•œ๋‹ค๋ฉด, (๋‹ค๋ฅธ ๋ธ”๋กœ๊ทธ ๋ณด๋‹ˆ 3๋ฒˆ์—์„œ ํ•ด๊ฒฐ์ด ๋˜๋˜๋ฐ ๋‚œ ์•ˆ ๋ผ์„œ.. Xcode ์—์„œ ๋šฑ๋•…๋šฑ๋•… ์ด๊ฒƒ์ €๊ฒƒ ๋ˆŒ๋Ÿฌ ๋ดค๋‹ค) 4.1. ํ”„๋กœ์ ํŠธ๋ช….xcodeproj ๋”๋ธ”ํด๋ฆญ 4.2. Build Settings 4.3. iOS Deployment Target ์—์„œ ๋‚ด๊ฐ€.. 2021. 9. 23.
[iOS] building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 ld: in /๊ฒฝ๋กœ/ํ”„๋กœ์ ํŠธ๋ช…/lib/๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ช….a(์˜ค๋ธŒ์ ํŠธํŒŒ์ผ๋ช….o), building for iOS Simulator, but linking in object file built for iOS, for architecture arm64 iOS Simulator์šฉ์œผ๋กœ ๋นŒ๋“œํ•˜์ง€๋งŒ iOS์šฉ์œผ๋กœ ๋นŒ๋“œ๋œ object file์— ๋งํฌํ•œ๋‹ค..์•„ํ‚คํ…์ฒ˜ arm64์šฉ์œผ๋กœ... (?) ์™€ ๊ฐ™์€ ๋ฌธ์ œ๊ฐ€ ์ƒ๊ฒผ์„ ๋•Œ, ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•... ์ฐธ๊ณ  : https://jusung.github.io/Xcode12-Build-Error/ [Xcode] Xcode12์—์„œ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ ๋นŒ๋“œ ์˜ค๋ฅ˜ ์›์ธ ๋ฐ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• ์ด๋ฒˆ ํฌ์ŠคํŠธ์—์„œ๋Š” Xcode12์—์„œ ์‹œ๋ฎฌ๋ ˆ์ดํ„ฐ์— ๋นŒ๋“œ์‹œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ์›์ธ๊ณผ ํ•ด๊ฒฐ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„ ๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. ํฌ์ŠคํŠธ๊ฐ€ ์ œ๋ฒ• ๊น๋‹ˆ.. 2021. 7. 29.
[iOS] iOS ์ •์ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํ…Œ์ŠคํŠธ์•ฑ์— ์—ฐ๊ฒฐํ•˜๊ธฐ ๋‚˜๋„ ์ง€๋‚œ์ฃผ์— ๊ณต๋ถ€ํ•˜๋ฉฐ ์บก์ฒ˜ํ•œ ๊ฑฐ๋ผ ๊ฐ€์žฅ ์•„๋ž˜์— ํŒ์ด๋ผ๋ฉด ํŒ์„ ์ถ”๊ฐ€ํ–ˆ์Œ... ๋‚ด ๊ธฐ์ค€์—์„œ ๊ฐ€์žฅ ์‰ฝ๊ฒŒ ๋งŒ๋“ค์—ˆ์Œ.... ์ •์ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ๋งŒ๋“ค๊ธฐ 1) Create a new Xcode project 2) Static Library > Next 3) Product Name, Language > Next 4) ์ด๋ ‡๊ฒŒ ์ƒ์„ฑ์ด ๋จ 5) ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํด๋” ์šฐํด๋ฆญ > New File… > C File 6) Name ์ž…๋ ฅ 7) Targets 8) Header file๊ณผ C file ์ด ์ƒ์„ฑ๋œ๋‹ค. ํ•ด๋‹น C ์ฝ”๋“œ์— ํ…Œ์ŠคํŠธ ํ•จ์ˆ˜๋ฅผ ์ ๋Š”๋‹ค. 9) Header file์— ํ…Œ์ŠคํŠธ ํ•จ์ˆ˜์— ๋Œ€ํ•œ ํ—ค๋”๋ฅผ ๋„ฃ๋Š”๋‹ค. 10) โ–ถ ์„ ๋ˆŒ๋Ÿฌ ๋นŒ๋“œํ•œ๋‹ค. (command + b ๋ฅผ ๋ˆŒ๋Ÿฌ๋„ ๋œ๋‹ค.) 11) libTest.a ๊ฐ€ ์ƒ์„ฑ๋๋‹ค. 12) File .. 2021. 3. 16.