How to add a pod into my flutter / iOS project?

时间:2018-09-13 09:35:42

标签: flutter

This should be very simple, one of the firsts things one do when starts a new project, but when I add the podfile and using usual pod install, it do not work. An error about not finding podfile.lock and manifest.lock shows up.

enter image description here

上设置i18n

这里有任何线索吗?

1 个答案:

答案 0 :(得分:1)

Gotcha。如果有人遇到相同的问题,我将回答这个问题:

打开Flutter/Release.xcconfigFlutter/Debug.xcconfig并添加以下行:

  • 对于Flutter/Debug.xcconfig
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
  • 对于Flutter/Release.xcconfig
#include "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"