MeetYouDevs / cocoapods-imy-bin

1.05k stars 245 forks source link

release_iphoneos环境设置完毕 但是执行pod bin auto --all-make还是显示dev环境 #9

Closed Joachim001 closed 4 years ago

Joachim001 commented 4 years ago

set_configuration_env('') 是不是设置的话就按设置的来,不设置的话就按dev来?

YaoJuan commented 4 years ago

是的,这就是个默认值。后续你可以去~/.cocoapods/bin_xxx.yml去更改配置

Joachim001 commented 4 years ago
image

release_iphoneos环境设置完毕 但是执行pod bin auto --all-make还是显示dev环境

image
su350380433 commented 4 years ago
plugin 'cocoapods-imy-bin' 
set_configuration_env('release_iphoneos')

放在Podfile里面

Joachim001 commented 4 years ago

放在Podfile里面,起到是指定.a是debug还是release的作用吧,如果我使用了Podfile_local那在执行pod bin install的时候还要再次使用set_configuration_env在Podfile_local里来指定我想要的编译环境吧?

su350380433 commented 4 years ago

放在Podfile里面,起到是指定.a是debug还是release的作用吧,如果我使用了Podfile_local那在执行pod bin install的时候还要再次使用set_configuration_env在Podfile_local里来指定我想要的编译环境吧?

plugin 'cocoapods-imy-bin' set_configuration_env('release_iphoneos') 可以放到podfile_local,与podfile 同等效应

Joachim001 commented 4 years ago

install/update的时候,放在podfile_local和podfile是同等效应。但是pod bin auto的时候,放在podfile里能改变编译环境,放在podfile_local里的话还是默认的dev改变不了

su350380433 commented 4 years ago

install/update的时候,放在podfile_local和podfile是同等效应。但是pod bin auto的时候,放在podfile里能改变编译环境,放在podfile_local里的话还是默认的dev改变不了

podfile_local和podfile是同等效应是为了方便开发时使用,但是制作二进制时还说以Podfile为准