最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]linphone-iphone编译出错:Command /bin/sh failed with exit code 1

iOS crifan 3843浏览 0评论

Archive:  /Users/crifan/dev/dev_src/swift/SIP/linphone-iphone/linphone-iphone/Tools/../liblinphone-iphone-sdk-latest.zip

 export variant=normal
    /bin/sh -c /Users/crifan/Library/Developer/Xcode/DerivedData/linphone-fpmhvyuynipgurfwvnohpykaouei/Build/Intermediates/linphone.build/Debug-iphonesimulator/linphone.build/Script-639002451D4106CA00BEFC78.sh
********************************************************************
warning: Liblinphone SDK missing! Downloading it (latest release)…
                                                                           0.0%                                                                            0.0%                                                                            0.0%                                                                          
。。。 
   creating: liblinphone-sdk/apple-darwin/lib/mediastreamer/
   creating: liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins/
  inflating: liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins/libmsamr.a  
  inflating: liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins/libmsbcg729.a  
  inflating: liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins/libmsopenh264.a  
  inflating: liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins/libmssilk.a  
  inflating: liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins/libmswebrtc.a  
  inflating: liblinphone-sdk/apple-darwin/lib/mediastreamer/plugins/libmsx264.a  
   creating: liblinphone-sdk/apple-darwin/share/
   creating: liblinphone-sdk/apple-darwin/share/bctoolbox/
   creating: liblinphone-sdk/apple-darwin/share/bctoolbox/cmake/
  inflating: liblinphone-sdk/apple-darwin/share/bctoolbox/cmake/BcToolboxConfig.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/bctoolbox/cmake/BcToolboxConfigVersion.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/bctoolbox/cmake/BcToolboxTargets-release.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/bctoolbox/cmake/BcToolboxTargets.cmake  
   creating: liblinphone-sdk/apple-darwin/share/BelleSIP/
   creating: liblinphone-sdk/apple-darwin/share/BelleSIP/cmake/
  inflating: liblinphone-sdk/apple-darwin/share/BelleSIP/cmake/BelleSIPConfig.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/BelleSIP/cmake/BelleSIPConfigVersion.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/BelleSIP/cmake/BelleSIPTargets-release.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/BelleSIP/cmake/BelleSIPTargets.cmake  
   creating: liblinphone-sdk/apple-darwin/share/bzrtp/
   creating: liblinphone-sdk/apple-darwin/share/bzrtp/cmake/
  inflating: liblinphone-sdk/apple-darwin/share/bzrtp/cmake/BZRTPConfig.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/bzrtp/cmake/BZRTPConfigVersion.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/bzrtp/cmake/BZRTPTargets-release.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/bzrtp/cmake/BZRTPTargets.cmake  
   creating: liblinphone-sdk/apple-darwin/share/CUnit/
  inflating: liblinphone-sdk/apple-darwin/share/CUnit/CUnit-List.dtd  
  inflating: liblinphone-sdk/apple-darwin/share/CUnit/CUnit-List.xsl  
  inflating: liblinphone-sdk/apple-darwin/share/CUnit/CUnit-Run.dtd  
  inflating: liblinphone-sdk/apple-darwin/share/CUnit/CUnit-Run.xsl  
  inflating: liblinphone-sdk/apple-darwin/share/CUnit/Memory-Dump.dtd  
  inflating: liblinphone-sdk/apple-darwin/share/CUnit/Memory-Dump.xsl  
  inflating: liblinphone-sdk/apple-darwin/share/dummy_libraries.txt  
   creating: liblinphone-sdk/apple-darwin/share/images/
  inflating: liblinphone-sdk/apple-darwin/share/images/nowebcamCIF.jpg  
   creating: liblinphone-sdk/apple-darwin/share/java/
  inflating: liblinphone-sdk/apple-darwin/share/java/antlr3.jar  
   creating: liblinphone-sdk/apple-darwin/share/Linphone/
   creating: liblinphone-sdk/apple-darwin/share/Linphone/cmake/
  inflating: liblinphone-sdk/apple-darwin/share/Linphone/cmake/LinphoneConfig.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/Linphone/cmake/LinphoneConfigVersion.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/Linphone/cmake/LinphoneTargets-release.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/Linphone/cmake/LinphoneTargets.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/Linphone/rootca.pem  
   creating: liblinphone-sdk/apple-darwin/share/man/
   creating: liblinphone-sdk/apple-darwin/share/man/man3/
  inflating: liblinphone-sdk/apple-darwin/share/man/man3/CUnit.3  
   creating: liblinphone-sdk/apple-darwin/share/Mediastreamer2/
   creating: liblinphone-sdk/apple-darwin/share/Mediastreamer2/cmake/
  inflating: liblinphone-sdk/apple-darwin/share/Mediastreamer2/cmake/Mediastreamer2Config.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/Mediastreamer2/cmake/Mediastreamer2ConfigVersion.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/Mediastreamer2/cmake/Mediastreamer2Targets-release.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/Mediastreamer2/cmake/Mediastreamer2Targets.cmake  
   creating: liblinphone-sdk/apple-darwin/share/oRTP/
   creating: liblinphone-sdk/apple-darwin/share/oRTP/cmake/
  inflating: liblinphone-sdk/apple-darwin/share/oRTP/cmake/ORTPConfig.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/oRTP/cmake/ORTPConfigVersion.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/oRTP/cmake/ORTPTargets-release.cmake  
  inflating: liblinphone-sdk/apple-darwin/share/oRTP/cmake/ORTPTargets.cmake  
   creating: liblinphone-sdk/apple-darwin/share/sounds/
   creating: liblinphone-sdk/apple-darwin/share/sounds/linphone/
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/dont_wait_too_long.mkv  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/hello16000.wav  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/hello8000.wav  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/incoming_chat.wav  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/ringback.wav  
   creating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/four_hands_together.mkv  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/house_keeping.mkv  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/its_a_game.mkv  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/leaving_dreams.mkv  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/notes_of_the_optimistic.mkv  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/oldphone-mono-30s.caf  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/oldphone-mono.wav  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/rings/soft_as_snow.mkv  
  inflating: liblinphone-sdk/apple-darwin/share/sounds/linphone/toy-mono.wav  
********************************************************************
Command /bin/sh failed with exit code 1

linphone-iphone Command /bin/sh failed with exit code 1

if [ ! -f "$SRCROOT/liblinphone-sdk/apple-darwin/share/linphone/rootca.pem" ]; then
echo ‘********************************************************************’
echo ‘warning: Liblinphone SDK missing! Downloading it (latest release)…’
$SRCROOT/Tools/sdk_download.sh "latest"
echo ‘********************************************************************’
exit 1
fi

linphone-iphone Command failed with exit code

Re: [Linphone-users] build failed on latest source code of linphone-ipho

Build or Compile Linphone from Source for iPhone and iPad | Shall We Learn

iphone – Linker command failed with exit code 1 error in Xcode project – Stack Overflow

把上述的脚本,从:

exit 1

改为:

exit 0

好像就可以继续编译了。

[总结]

此处,觉得有点诡异:

不知道,为何此处的

BelledonneCommunications/linphone-iphone: Linphone.org mirror for linphone-iphone (git://git.linphone.org/linphone-iphone.git)

已经弄好的Xcode项目中的脚本:

if [ ! -f "$SRCROOT/liblinphone-sdk/apple-darwin/share/linphone/rootca.pem" ]; then
echo ‘********************************************************************’
echo ‘warning: Liblinphone SDK missing! Downloading it (latest release)…’
$SRCROOT/Tools/sdk_download.sh "latest"
echo ‘********************************************************************’
exit 1
fi

会是:

当不存在对应的脚本时,去下载,

但是下载之后,不是无错误的退出,exit 0

而是exit 1-》导致此处Xcode退出出错

解决办法是:

把exit 1改为exit 0,即可。

转载请注明:在路上 » [已解决]linphone-iphone编译出错:Command /bin/sh failed with exit code 1

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
89 queries in 0.210 seconds, using 22.07MB memory