Ionic ๋ฒ์ : ("x"๋ก ํ๋ ์ ํ)
[ ] 1.x (Ionic 1.x ๋ฌธ์ ์ ๊ฒฝ์ฐ https://github.com/ionic-team/ionic-v1์ ์ฌ์ฉํ์ธ์.)
[ ] 2.x
[x] 3.x
์ ์ถ ์ค์
๋๋ค ... ("x"๋ก ํ๋ ์ ํ)
[x] ๋ฒ๊ทธ ๋ณด๊ณ ์
[ ] ๊ธฐ๋ฅ ์์ฒญ
[ ] ์ง์ ์์ฒญ => ์ฌ๊ธฐ์ ์ง์ ์์ฒญ์ ์ ์ถํ์ง ๋ง๊ณ ๋ค์ ์ฑ๋ ์ค ํ๋๋ฅผ ์ฌ์ฉํ์ญ์์ค. https://forum.ionicframework.com/ ๋๋ http://ionicworldwide.herokuapp.com/
ํ์ฌ ํ๋:
์ ์๋์ง ์์ ์๊ฐ์ด ์ง๋๋ฉด ๋ด ์ฑ์ ๋ ์ด์ iOS ๊ธฐ๊ธฐ์ฉ์ผ๋ก ๋น๋ํ ์ ์์ต๋๋ค.
์์๋๋ ๋์:
iOS ๊ธฐ๊ธฐ์ฉ์ผ๋ก ๋น๋ํ ์ ์์ด์ผ ํฉ๋๋ค.
์ฌํ ๋จ๊ณ:
๋๋ ์ด๊ฒ์ด ์ด๋ป๊ฒ ์ผ์ด๋๋์ง ์ ํ ๋ชจ๋ฅธ๋ค
๊ด๋ จ ์ฝ๋:
์ด๊ฒ์ ios ์ฉ์ผ๋ก ๋น๋ํ๋ ค๊ณ ํ ๋ ์ป๋ ๊ฒ์
๋๋ค.
> cordova build ios
โ Running command - failed!
[ERROR] An error occurred while running cordova build ios (exit code 1):
(truncated) ... licate symbol _OBJC_IVAR_$_UNIHTTPStringResponse._body in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIHTTPStringResponse-6AE7BF574F7FD89D.o
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIHTTPStringResponse-ACD8B349DA1366AA.o
duplicate symbol _OBJC_CLASS_$_UNIHTTPStringResponse in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIHTTPStringResponse-6AE7BF574F7FD89D.o
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIHTTPStringResponse-ACD8B349DA1366AA.o
duplicate symbol _OBJC_METACLASS_$_UNIHTTPStringResponse in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIHTTPStringResponse-6AE7BF574F7FD89D.o
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIHTTPStringResponse-ACD8B349DA1366AA.o
duplicate symbol _OBJC_IVAR_$_UNIJsonNode._array in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-7600CC35AA339D64.o
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-B9FEAECE639D8883.o
duplicate symbol _OBJC_IVAR_$_UNIJsonNode._object in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-7600CC35AA339D64.o
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-B9FEAECE639D8883.o
duplicate symbol _OBJC_CLASS_$_UNIJsonNode in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-7600CC35AA339D64.o
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-B9FEAECE639D8883.o
duplicate symbol _OBJC_METACLASS_$_UNIJsonNode in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-7600CC35AA339D64.o
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/UNIJsonNode-B9FEAECE639D8883.o
duplicate symbol _OBJC_CLASS_$_CDVLogger in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/CDVLogger.o
/Applications/XAMPP/xamppfiles/htdocs/LVDLV/clone_new/lvdlv/platforms/ios/build/emulator/libCordova.a(CDVLogger.o)
duplicate symbol _OBJC_METACLASS_$_CDVLogger in:
/Users/Alexandre/Library/Developer/Xcode/DerivedData/ShOroom-egyzqumtqhesmlcsgwngozvucwss/Build/Intermediates/ShOroom.build/Debug-iphonesimulator/ShOroom.build/Objects-normal/x86_64/CDVLogger.o
/Applications/XAMPP/xamppfiles/htdocs/LVDLV/clone_new/lvdlv/platforms/ios/build/emulator/libCordova.a(CDVLogger.o)
ld: 260 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/emulator/ShOroom.app/ShOroom normal x86_64
(1 failure)
Error: Error code 65 for command: xcodebuild with args:
-xcconfig,/Applications/XAMPP/xamppfiles/htdocs/LVDLV/clone_new/lvdlv/platforms/ios/cordova/build-debug.xcconfig,-workspace,ShOroom.xcworkspace,-scheme,ShOroom,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS
Simulator,name=iPhone
SE,build,CONFIGURATION_BUILD_DIR=/Applications/XAMPP/xamppfiles/htdocs/LVDLV/clone_new/lvdlv/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Applications/XAMPP/xamppfiles/htdocs/LVDLV/clone_new/lvdlv/platforms/ios/build/sharedpch
๊ธฐํ ์ ๋ณด:
์ด๊ฒ์ ๋ ๋ฒ์งธ์
๋๋ค. ์ฒ์๋ถํฐ ์ด์จ ํ๋ก์ ํธ๋ฅผ ์ฒ์๋ถํฐ ๋ง๋ค๊ณ ๋ฌธ์ ๋ฅผ ๊ฐ์งํ๊ธฐ ์ํด ๊ฐ ๋ฐ๋ณต ํ์ ์๋ ํ๋ก์ ํธ์ iOS์ฉ ๋น๋์ ์๋ ๊ฒ์ ์ฒ์ฒํ ํตํฉํด์ผ ํ์ต๋๋ค. ๋ช ์๊ฐ ํ ์ฝ๋ ์ ์ฒด๊ฐ ๋ณต์ฌ๋์ด ์ด๋ป๊ฒ๋ ios์ฉ์ผ๋ก ๋น๋ํ ์ ์์์ต๋๋ค.
์ค๋ ์์นจ์ ios์ฉ์ผ๋ก ๋น๋๋ฅผ ์๋ํ์ง๋ง ์ฌ์ ํ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํฉ๋๋ค [๊ด๋ จ ์ฝ๋ ์น์
์ฐธ์กฐ] .
๋ํ ๋ด /plugins & /node_modules ๋๋ ํ ๋ฆฌ๋ฅผ ์ญ์ ํ๋ ค๊ณ ์๋ํ์ง๋ง ๋์์ด ๋์ง ์์์ต๋๋ค.
์น์์๋ ๋๋ฅผ ๋์ธ ์ ์๋ ๊ฒ์ ์ฐพ์ ์ ์์์ต๋๋ค.
Ionic ์ ๋ณด: (ํฐ๋ฏธ๋/cmd ํ๋กฌํํธ์์ ionic info
์คํํ๊ณ ์๋์ ์ถ๋ ฅ ๋ถ์ฌ๋ฃ๊ธฐ):
cli packages:
@ionic/cli-utils : 1.10.2
ionic (Ionic CLI) : 3.10.3
global packages:
Cordova CLI : 7.0.1
local packages:
@ionic/app-scripts : 2.1.4
Cordova Platforms : android 6.2.3 ios 4.4.0
Ionic Framework : ionic-angular 3.6.1
System:
ios-deploy : 1.9.1
ios-sim : 6.0.0
Node : v6.11.0
npm : 3.10.10
OS : OS X El Capitan
Xcode : Xcode 8.2.1 Build version 8C1002
์ฌ๋ณด์ธ์! ๋ฌธ์ ๋ฅผ ์ด์ด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
๋๋ ๋น์ ์ ์ค๋ฅ๋ฅผ ๋ณต์ ํ ์ ์์ต๋๋ค. ๋น์ ์ด ๋งํ๋ฏ์ด ์ผ๋ฐ์ ์ผ๋ก ์๋ํ ๋ค์ ๋ถ๊ฐ์ฌ์ํ๊ฒ ์ค์ง๋๊ธฐ ๋๋ฌธ์ ์์ ํ ์๋ฏธ๊ฐ ์์ต๋๋ค. ์... ๋ช ๊ฐ์ง ๋ฒ์ ์ผ๋ก ์์ํด ๋ณด๊ฒ ์ต๋๋ค.
๋๋ Xcode 9๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค. ์ด๋ค ๋ฒ์ ์ ์ฌ์ฉํ๊ณ ์์ต๋๊น?
๋๋ cordova-ios
version 4.4.0
์ ์ฌ์ฉํ๊ณ ์๋๋ฐ, ์ด๊ฒ์ ๋น์ ์ด ์ฌ์ฉํ๊ณ ์๋ ๊ฒ๊ณผ ๊ฐ์ต๋๋ค...
ํ ... ๋ช ๊ฐ์ง ํด๋ณผ๊ฒ
์๋ ํ์ธ์ @kensodemann , ์ ๋ ํ์ฌ Xcode ๋ฒ์ 8.2.1์ ์ฌ์ฉ ์ค์ ๋๋ค.
๊ฐ์ฌํฉ๋๋ค!
ํ๋ฌ๊ทธ์ธ ์ฝ์์ ์ ๊ฑฐํ๊ณ ๋ค์ ์๋ํ์ญ์์ค. ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค. ๊ทธ๋ฌ๋ ๋๋ Cordova ios 4.5๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค.
๋ฌธ์ ๋ ์ด๋ฏธ cordova cli 7์ ์๋ CDVLogger์ ๋๋ค.
Cc @kensodemann
๋ณต์ ํ๊ณ ์์ ํ์ง๋ง ์ด๊ฒ์ด ๊ทํ์ ๋ฌธ์ ์ธ์ง ์์ ํ ํ์ ํ ์๋ ์์ง๋ง ์๋ํด ๋ณผ ๊ฐ์น๊ฐ ์์ต๋๋ค.
๋จผ์ node_modules
๋ฐ platform/ios
๋๋ ํ ๋ฆฌ๋ฅผ ์ ๊ฑฐํ๊ณ npm i
๋ฐ ionic build
๋ฅผ ์ํํ์ฌ cordova-ios
๋ฒ์ 4.5.0
๋ฅผ ์ค์นํ์ต๋๋ค.
๋ด ์ถ์ธก(๊ทธ๋ฆฌ๊ณ ๊ทธ๊ฒ์ ๋จ์ง ์ถ์ธก์ผ ๋ฟ์
๋๋ค)์ ionic info
๊ฐ 4.4.0
๋ฅผ ๋ณด๊ณ ํ๋๋ผ๋ $ cordova-ios 4.5.0
๋ฅผ ๊ฐ์ง๊ณ ์๋ค๋ ๊ฒ์
๋๋ค(์ด์ํ์ง๋ง ์ด ์์ ์์ ๋ ๋์ ์ค๋ช
์ด ์์ต๋๋ค) .
๊ทธ๋์ ๋๋ ์ด๊ฒ์ํ๋ค :
package.json
์์ "cordova-ios": "^4.4.0"
๋ฅผ "cordova-ios": "4.4.0"
๋ก ๋ณ๊ฒฝํฉ๋๋ค('^' ์์).config.xml
์์ <engine name="ios" spec="^4.4.0" />
๋ฅผ <engine name="ios" spec="4.4.0" />
๋ก ๋ณ๊ฒฝํฉ๋๋ค.rm -rf node_modules/ platforms/ios/
npm i
ionic cordova build ios
๋ฐ๋ผ์ ์ ์ด๋ ์ ์๊ฒ ์์ด ์์ ์ ํต์ฌ์ ^4.4.0
๋ฅผ ์ฌ์ฉํ๋ ๋์ cordova-ios
๋ฒ์ ์ 4.4.0
์ ๊ณ ์ ํ๋ ๊ฒ์ด์์ต๋๋ค. ๊ทธ๋ฌ๋ฉด ๋ง์ด๋ ๋ฒ์ ์ผ๋ก ์
๊ทธ๋ ์ด๋๋ฉ๋๋ค.
๋ฌผ๋ก ์ด๊ฒ์ cordova-ios
๋ฅผ ์
๊ทธ๋ ์ด๋ํ ๋ ์๋์ผ๋ก ์ํํด์ผ ํ์ง๋ง ์ด๋ป๊ฒ๋ ํด๋น ์ ์ด๋ฅผ ์ํ ์ ์์์ ์๋ฏธํฉ๋๋ค.
์ด์จ๋ , ๊ทธ๊ฒ์ ์๋ํ๊ณ ๊ทธ๊ฒ์ด ๋น์ ์ ์ํด ์๋ํ๋์ง ์๋ ค์ฃผ์ญ์์ค.
@kensodemann ์ ํํ ๋ฌธ์ ์ ๋๋ค!
@kensodemann ๋ง์ธ, ์ด์ ๋น๋ํ ์ ์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค!!
ioinc build
ํ๊ธฐ ์ ์ package.json ํ์ผ์ ๋ค์ด๊ฐ๋ณด๋ "cordova-ios": "^4.4.0",
๊ฐ ์๋๋ผ ^4.5.0
๊ฐ ๋ฐ๊ฒฌ๋์์ต๋๋ค.
์ด์จ๋ , ๊ทธ๋์ ๋๋ ๋น์ ์ ์ง์์ ๋ฐ๋ผ rm -rf node_modules/ platform/ios
๋ค์ npm i
๋ฐ npm build
๋ฅผ ์คํํ์ต๋๋ค.
๊ทธ ๋ง์ง๋ง ๋ช
๋ น์ ๋ด "cordova-ios": "^4.4.0",
๋ฅผ "cordova-ios": "^4.5.0",
๋ก ๋ณ๊ฒฝํ์ต๋๋ค.
๊ทํ์ ์ง์๋ฅผ ์ต๋ํ ๋ฐ๋ฅด๊ธฐ ์ํด ๊ทํ์ ์ ์ "cordova-ios": "4.4.0",
( config.xml
๋ ๋์ผ)์ผ๋ก ๋ณ๊ฒฝํ์ต๋๋ค.
๋ด node_modules
& platform/ios
๋ฅผ ๋ค์ ํ ๋ฒ ์ ๊ฑฐํ๊ณ npm i
๋ฅผ ์คํํ ๋ค์ ionic cordova build ios
๋ฅผ ์คํํ๋ฉด ์๋ํ์ต๋๋ค .
๋๋๊ฒ๋ ๊ทธ๋ ๊ฒ ํ ํ์๋ ์ฌ์ ํ package.json
์ "cordova-ios": "^4.4.0",
๊ฐ ์๊ณ config.xml
์ <engine name="ios" spec="^4.4.0" />
$๊ฐ ์์ต๋๋ค.
๋๋๊ฒ๋ ๊ทธ๋ ๊ฒ ํ ํ์๋ ์ฌ์ ํ ๋ด package.json์์ "cordova-ios": "^4.4.0"์ ๋ฐ๊ฒฌํ์ต๋๋ค.
๋ด config.xml์์
๋ด ์๊ฐ์ Cordova๊ฐ ๊ทธ๋ ๊ฒํฉ๋๋ค. ๊ฐ์ธ์ ์ผ๋ก ๋ด ์ค์ ์ ๋ง์น๋ ๋๊ตฌ์ ํฌ์ด ์๋๋๋ค... :(
๊ทธ๋ผ ์ด๋ง ๋ซ๊ฒ ์ต๋๋ค. ์ง๊ธ ์๋ํ๊ณ ์์ด ๋คํ์ ๋๋ค.
@nuno ๊ฐ ์ ํํ๊ณ ์ฝ์ ํ๋ฌ๊ทธ์ธ์ด ๊ทผ๋ณธ ์์ธ์ด๋ฉฐ ์ด๋ cordova 7์ ํฌํจ๋์ด ์์ผ๋ฏ๋ก ํ๋ฌ๊ทธ์ธ์ ์ ๊ฑฐํ๊ธฐ๋ง ํ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋ฉ๋๋ค.
@kensodemann
๋๋ฅผ ์ํด ์ผํ์ง ์์๋ค. ๋๋ ์ป์๋ค
Ld ๋น๋/์๋ฎฌ๋ ์ดํฐ/MyApp.app/MyApp ์ผ๋ฐ x86_64
cd /Applications/IonicApps/BabyName/platforms/ios
๋ด๋ณด๋ด๊ธฐ IPHONEOS_DEPLOYMENT_TARGET=9.0
๋ด๋ณด๋ด๊ธฐ PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Library/Frameworks/Python.framework /Versions/3.5/bin:/Users/saikrishna/Softwares/android-sdks/platform-tools:/Users/saikrishna/Softwares/android-sdks/tools:/usr/local/bin:/usr/bin:/bin: /usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10. 3.sdk -L/Applications/IonicApps/BabyName/platforms/ios/build/emulator -F/Applications/IonicApps/BabyName/platforms/ios/build/emulator -FMyApp/Plugins/cordova-plugin-facebook4 -FMyApp/Plugins/ cordova-plugin-googleplus -filelist /Users/eupherntechnology/Library/Developer/Xcode/DerivedData/MyApp-gddohggkprehdkdqznpxmbtrwfzt/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp. Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/eupherntechnology/Library/Developer/Xcode/DerivedData/MyApp-gddohggkprehdkdqdqzntmb ๋น๋/๋๋ฒ๊ทธ-iphonesimulator/MyApp.build/Objects-normal/x86_64/MyApp_lto.o -Xlinker -no_de ๋ณต์ -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker/Buildtrndqpx/Users/eupherntechnology/Library/Developer/Xcode/DerivedData/MyApphddw /Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/MyApp.app.xcent /Applications/IonicApps/BabyName/platforms/ios/build/emulator/libCordova.a -weak_framework AudioToolbox -framework StoreKit -framework Bolts -framework FBSDKCoreKit -weaklz -framework FBSDKLoginKit -framework FBSDKShareKit -framework CoreLocation -framework GoogleAppUtilities -framework GoogleAuthUtilities -framework GoogleNetworkingUtilities -framework GoogleSignIn -framework GoogleSymbolUtilities -framework GoogleUtilities -weak_framework ์ฃผ์๋ก -weak_framework CoreText -weak_framework -weak_framework WebKit -weak_framework ์์
-weak_framework MessageUI -Xlinker -d ependency_info -Xlinker /Users/eupherntechnology/Library/Developer/Xcode/DerivedData/MyApp-gddohggkprehdkdqznpxmbtrwfzt/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/Applicationsda_dependency IonicApps/BabyName/platforms/ios/build/emulator/MyApp.app/MyApp
์ค๋ณต ๊ธฐํธ _OBJC_CLASS_$_CDVLogger:
/Users/eupherntechnology/Library/Developer/Xcode/DerivedData/MyApp-gddohggkprehdkdqznpxmbtrwfzt/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/CDVLogger.o
/Applications/IonicApps/BabyName/platforms/ios/build/emulator/libCordova.a(CDVLogger.o)
์ค๋ณต ๊ธฐํธ _OBJC_METACLASS_$_CDVLogger:
/Users/eupherntechnology/Library/Developer/Xcode/DerivedData/MyApp-gddohggkprehdkdqznpxmbtrwfzt/Build/Intermediates/MyApp.build/Debug-iphonesimulator/MyApp.build/Objects-normal/x86_64/CDVLogger.o
/Applications/IonicApps/BabyName/platforms/ios/build/emulator/libCordova.a(CDVLogger.o)
ld: ์ํคํ
์ฒ x86_64์ ๋ํ 2๊ฐ์ ์ค๋ณต ๊ธฐํธ
clang: ์ค๋ฅ: ๋ง์ปค ๋ช
๋ น์ด ์ข
๋ฃ ์ฝ๋ 1๊ณผ ํจ๊ป ์คํจํ์ต๋๋ค(ํธ์ถ์ ๋ณด๋ ค๋ฉด -v ์ฌ์ฉ).
* ๋น๋ ์คํจ *
๋ค์ ๋น๋ ๋ช
๋ น์ด ์คํจํ์ต๋๋ค.
Ld ๋น๋/์๋ฎฌ๋ ์ดํฐ/MyApp.app/MyApp ์ผ๋ฐ x86_64
(1 ์คํจ)
์ค๋ฅ: ๋ช
๋ น์ ๋ํ ์ค๋ฅ ์ฝ๋ 65: ์ธ์๊ฐ ์๋ xcodebuild: -xcconfig,/Applications/IonicApps/BabyName/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug ,-sdk,iphonesimulator,-destination,platform=iOS ์๋ฎฌ๋ ์ดํฐ,์ด๋ฆ=iPhone SE,๋น๋,CONFIGURATION_BUILD_DIR=/Applications/IonicApps/BabyName/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Applications/IonicApps/BabyName/platforms /build/sharedpch
ํ๊ฒฝ
cli ํจํค์ง: (/Applications/IonicApps/BabyName/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
๊ธ๋ก๋ฒ ํจํค์ง:
cordova (Cordova CLI) : 7.1.0
Gulp CLI : CLI version 3.9.1 Local version 3.9.1
๋ก์ปฌ ํจํค์ง:
Cordova Platforms : ios 4.5.4
Ionic Framework : ionic1 1.3.3
์ฒด๊ณ:
ios-deploy : 1.9.1
ios-sim : 6.1.2
Node : v6.10.3
npm : 2.15.12
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ํ๊ฒฝ ๋ณ์:
ANDROID_HOME : /Users/saikrishna/Softwares/android-sdks
๊ธฐํ:
backend : pro
@surajitdeveloper -
์ฝ์ ํ๋ฌ๊ทธ์ธ์ ์ค์นํ๊ณ ์์ง ์์ต๋๊น?
๋ค ์ ๊ฑฐํ๊ณ ์ฒ์๋ถํฐ ๋ค์ ์ค์นํ์
จ๋์?
๊ทํ์ ๋ฆฌํฌ์งํ ๋ฆฌ๊ฐ ์จ๋ผ์ธ์ธ ๊ฒฝ์ฐ ๋งํฌ๋ฅผ ์ ๊ณตํ๋ฉด ๋น ๋ฅด๊ฒ ์ดํด๋ณด๊ฒ ์ต๋๋ค. ๊ทธ๋ฌ๋ ์ผ๋ฐ์ ์ผ๋ก ์ด๊ฒ์ Ionic Framework ๋ฌธ์ ๊ฐ ์๋๋ผ ํธํ๋์ง ์๋ ํ๋ฌ๊ทธ์ธ ์ฌ์ฉ๊ณผ ๊ด๋ จ๋ ๋ฌธ์ ์ ๋๋ค.
@kensodemann ์ด ๋ง์ต๋๋ค. ๋ชจ๋ ํ๋ฌ๊ทธ์ธ์ด ์ค๋๋์๊ฑฐ๋ ํธํ๋์ง ์๊ธฐ ๋๋ฌธ์ ๋๋ค.
๋๋ฅผ ์ํด ๊ทธ๊ฒ์ cordova-plugin-inappbrowser ๋ก ๋ฐํ์ก์ต๋๋ค . ๋ด config.xml์๋ ๋ ์ด์ ์กด์ฌํ์ง ์๋ git repo์ ๋ํ ์ฐธ์กฐ๊ฐ ์ฌ์ ํ ์์์ต๋๋ค. ์ฒ์์๋ ๋น๋ ํ๋ก์ธ์ค์์ ๋์น ์ฑ์ง ๋ชปํ์ง๋ง ๊ฐ์๊ธฐ ๋น๋๊ฐ ํ๋ฌ๊ทธ์ธ ์ ์ฅ์๋ฅผ ์ฐพ์ง ๋ชปํ๋ค๊ณ ๋ถํํ๋ ๊ฒ์ ๋ฐ๊ฒฌํ์ต๋๋ค. ํด๊ฒฐ์ฑ ์ ์์ฃผ ๊ฐ๋จํ์ต๋๋ค. config.xml์ ์ฃผ์์ ์ถ๊ฐํ๊ณ ํ๋ฌ๊ทธ์ธ์ ๋ค์ ์ค์นํ๋ ๊ฒ์ ๋๋ค. ๊ทธ๋ฆฌ๊ณ iOS๋ ๋ค์ ๊ตฌ์ถ๋๊ณ ์์์ต๋๋ค :)
๋ฐ๋ผ์ ๋์์ด ๋๋ค๋ฉด ionic cordova build ios
๋ฅผ ์คํํ ํ ๋น๋ ๋ก๊ทธ๋ฅผ ํ์ธํ์ญ์์ค. ํ๋ฌ๊ทธ์ธ์ ๋ํ ์ค๋ฅ๊ฐ ํฌํจ๋ ์ ์์ต๋๋ค. ๊ทธ๋ฆฌ๊ณ ๋ชจ๋ ํ๋ฌ๊ทธ์ธ์ ํ์ธํ์ญ์์ค. ๋จ์ํ ์ฌ์ค์นํ๋ ๊ฒ์ ๋์์ด ๋์ง ์์ ์ ์์ต๋๋ค. ๋ฒ์ ๋ ์
๋ฐ์ดํธํด์ผ ํ ์ ์์ต๋๋ค.
@nuno ์ ์๋ฃจ์
์ด ์ ์๊ฒ ํจ๊ณผ์ ์
๋๋ค. ๋ค์์ ์คํํ๊ธฐ๋ง ํ๋ฉด ๋ฉ๋๋ค.
cordova plugin rm cordova-plugin-console
cordova platform rm ios
cordova platform add ios
cordova build ios
๋๋ cordova-ios ๋ฒ์ 4.5.4๋ฅผ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
์๋ ํ์ธ์ ์ฌ๋ฌ๋ถ,
๋๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์๊ณ @didinj ๊ฐ ๊ฒ์ ํ ์๋ฃจ์ ์ ์คํํ๋ ค๊ณ ์๋ํ์ง๋ง ์๋ํ์ง ์์ต๋๋ค. ๊ทธ ํ์ rm ํ๋ซํผ์ ์คํ ํ ๋ค์ ios๋ฅผ ๋น๋ ํ ๋ ์คํฌ๋ฆฝํธ์ ๋ํ ์ค๋ฅ๊ฐ ๋ฐ์ํ๊ณ ์ฑ ์คํฌ๋ฆฝํธ๋ฅผ ๋ค์ ์ถ๊ฐํ์ง๋ง ๋ฌธ์ ๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค. npm install @ionic / app-scripts@latest --save-dev ์คํฌ๋ฆฝํธ์ 3.1.7 ๋ฒ์ ์ ์ค์นํ๋ฉด ๋์ผํ ์ฃผ์ ์ค๋ฅ๊ฐ ์์ฑ๋๊ณ ์ฑ ์คํฌ๋ฆฝํธ๋ฅผ ์คํํ๊ณ ๋ค์ ์คํํ์ง๋ง ์ฑ ์คํฌ๋ฆฝํธ์ฉ ๋ฒ์ ์ด ๋ ๋ฎ๊ณ ์ด์ ๋ค์๊ณผ ์ ์๋ํฉ๋๋ค. 3.0.0 : npm install @ionic / [email protected] --save-dev
๋๋ ๋๋ฌด cordova-ios ๋ฒ์ 4.5.4์ Xcode 9.2๊ฐ ์๋ macOS High Sierra 10.13.2์ ๋ชจ๋ ์ต์ ๋ฒ์ ์ ์ฌ์ฉํ๊ณ ์์ต๋๋ค.
cli ํจํค์ง: (/usr/local/lib/node_modules)
@ionic/cli-utils : 1.19.0
ionic (Ionic CLI) : 3.19.0
๊ธ๋ก๋ฒ ํจํค์ง:
cordova (Cordova CLI) : 8.0.0
๋ก์ปฌ ํจํค์ง:
@ionic/app-scripts : 3.0.0
Cordova Platforms : android 6.2.3 ios 4.5.4
Ionic Framework : ionic-angular 3.9.2
์ฒด๊ณ:
ios-deploy : 1.9.2
Node : v8.0.0
npm : 5.0.0
OS : macOS High Sierra
Xcode : Xcode 9.2 Build version 9C40b
์ด๋ฅผ ํตํด ๋ค๋ฅธ ์ฌ์ฉ์๋ฅผ ๋์ธ ์ ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
๋ชจ๋์๊ฒ ๊ฐ์ฌํฉ๋๋ค.
๋๋ฅผ ์ํด ์๋ํฉ๋๋ค! @kensodemann ๊ฐ์ฌํฉ๋๋ค! ๐
https://github.com/apache/cordova-plugin-console์ ๋ฐ๋ผ
์ด ํ๋ฌ๊ทธ์ธ์์ ์ ๊ณตํ๋ ๊ธฐ๋ฅ์ด ์ด์ cordova-ios 4.5.0 ์ด์์ ํฌํจ๋๊ณ ์ง์์ด ์ด๋ฏธ cordova-windows > 5.0.0์ ๋ด์ฅ๋์ด ์์ผ๋ฏ๋ก ์ด ํ๋ฌ๊ทธ์ธ์ ๋ ์ด์ ์๋ํ์ง ์์ต๋๋ค. ์ ํ๋ฆฌ์ผ์ด์ ์์ ์ด ํ๋ฌ๊ทธ์ธ์ ์ ๊ฑฐํด์ผ ํฉ๋๋ค.
์๋ฌด๋ ์ฌ์ ํ์ด ๋ฌธ์ ๊ฐ ์์ต๋๊น? gresh ์ ์ฑ์์ ์ด ํ๋ฌ๊ทธ์ธ์ ์ฌ์ฉํ ์ ์์ต๋๋ค...
@nuno ์ ์๋ฃจ์ ๋ ์ ์๊ฒ ํจ๊ณผ์ ์ ๋๋ค.
ionic cordova plugin remove cordova-plugin-console
๋ฌธ์ ๋ฅผ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค! ์ด ๋ฌธ์ ๋ ์๋ ๋ฌธ์ ์ ๊ด๋ จ์ด ์๋ ๋๊ธ์ ๋ฐฉ์งํ๊ธฐ ์ํด ์ ๊ฒจ ์์ต๋๋ค. ์ด๊ฒ์ด ์ฌ์ ํ ์ต์ ๋ฒ์ ์ Ionic์์ ๋ฌธ์ ๊ฐ ๋๋ ๊ฒฝ์ฐ ์ ๋ฌธ์ ๋ฅผ ๋ง๋ค๊ณ ํ ํ๋ฆฟ์ด ์์ ํ ์ฑ์์ก๋์ง ํ์ธํ์ญ์์ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
ํ๋ฌ๊ทธ์ธ ์ฝ์์ ์ ๊ฑฐํ๊ณ ๋ค์ ์๋ํ์ญ์์ค. ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ต๋๋ค. ๊ทธ๋ฌ๋ ๋๋ Cordova ios 4.5๋ฅผ ๊ฐ์ง๊ณ ์์ต๋๋ค.
๋ฌธ์ ๋ ์ด๋ฏธ cordova cli 7์ ์๋ CDVLogger์ ๋๋ค.
Cc @kensodemann