์ค๋ช
:
Android์์ ํตํฉ์ ์ฑ๊ณตํ์ต๋๋ค. ๊ทธ๋ฌ๋ iOS์์๋ podfile์ ์๋ ์ค์ ์ถ๊ฐํ ํ
ํฌ๋ 'react-native-onesignal',
:๊ฒฝ๋ก => "../node_modules/react-native-onesignal/react-native-onesignal.podspec",
:inhibit_warnings => ์ฐธ
ํฌ๋ ์ค์น ํ ์ด ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
[!] CocoaPods๋ "OneSignal" ํฌ๋์ ํธํ๋๋ ๋ฒ์ ์ ์ฐพ์ ์ ์์ต๋๋ค.
Podfile์์:
react-native-onesignal ( from ../node_modules/react-native-onesignal/react-native-onesignal.podspec
)์ ๋ค์์ ๋ฐ๋ผ ๋ฌ๋ผ์ง๋ 3.2.12๋ก ํด๊ฒฐ๋์์ต๋๋ค.
์์๊ทธ๋(= 2.9.4)
์ฌ์ ์์ค ์ค OneSignal (= 2.9.4)
์ข
์์ฑ์ ์ถฉ์กฑํ๋ ์ฌ์์ด ์์ต๋๋ค.
ํ๊ฒฝ
๋ฌธ์ ์ฌํ ๋จ๊ณ:
1.npm install --react-native-onesignal ์ ์ฅ
๊ธฐํ:
(ํฌ๋์ ์คํ ์ถ์ ๋ฐ ๊ธฐํ ์ ๋ณด๋ ์ฌ๊ธฐ์ ์์)
@cfmitrah cd
๋ฅผ /ios
๋๋ ํ ๋ฆฌ์ ๋ฃ๊ณ pod repo update
.
๊ทธ๋๋ ์๋ํ์ง ์์ผ๋ฉด Podfile์ ๊ฒ์ํ์ญ์์ค.
๋ฌด์๋ต์ผ๋ก ์ข ๋ฃ
๋๋ฃ ์ฌํ์๋ฅผ ์ํด
-->> https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/55#issuecomment -459369818
@Nightsd01 ,
์ด ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
[!] CocoaPods could not find compatible versions for pod "OneSignal":
In Podfile:
react-native-onesignal (from `../node_modules/react-native-onesignal`) was resolved to 3.4.2, which depends on
OneSignal (= 2.11.2)
/bin/bash failed with return code: 31
return code: 1
None of your spec sources contain a spec satisfying the dependency: `OneSignal (= 2.11.2)`.
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.
Azure DevOps์์ ๋ค์ ๋ช ๋ น์ ์คํํ ๋:
cd ios && rm Podfile.lock && pod deintegrate && cd .. && rm -rf node_modules && rm package-lock.json && npm install && cd ios/ && pod install && pod repo update
๋๋ฌด ๊ณต๊ฒฉ์ ์ธ๊ฐ์? rm Podfile.lock && pod deintegrate
๋ฅผ ์คํํ ํ์๊ฐ ์์ต๋๊น? pod install
์ด๋ฉด CI ๋น๋ ๋๊ตฌ ๊ตฌ์ฑ์ ์ถฉ๋ถํฉ๋๊น?
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@cfmitrah
cd
๋ฅผ/ios
๋๋ ํ ๋ฆฌ์ ๋ฃ๊ณpod repo update
.๊ทธ๋๋ ์๋ํ์ง ์์ผ๋ฉด Podfile์ ๊ฒ์ํ์ญ์์ค.