XCode 9.1 命令/bin/sh 失败,退出代码为 1 [英] XCode 9.1 Command /bin/sh failed with exit code 1

查看:50
本文介绍了XCode 9.1 命令/bin/sh 失败,退出代码为 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 xcode 更新到 9.1 版本后,我无法编译我的项目,总是出现相同的错误 Command/bin/sh failed with exit code 1.我尝试创建空项目,安装我需要的所有 pod,结果是一样的.这是我的 podfile

After updating xcode to version 9.1, I can't compile my projects, always have the same error Command /bin/sh failed with exit code 1. I tried to create empty project, install all pods I need, and the result is the same. Here is my podfile

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target 'xcode9.1' do

pod 'RMStore'
pod 'GoogleMaps'
pod 'RMMapper'
pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'
pod 'VK-ios-sdk'
pod 'TwitterKit'
pod 'GoogleSignIn'
pod 'Flurry-iOS-SDK/FlurrySDK'
pod 'TWSReleaseNotesView'
pod 'GoogleAnalytics'
pod 'GoogleTagManager','~> 3.15.0'
pod 'SBJson'
pod 'Fabric'
pod 'Crashlytics'
pod 'APOfflineReverseGeocoding'
pod 'AFNetworking'
pod 'Realm'

end

这个问题在我所有的项目中都会重复出现,谁能告诉我如何解决它?

This problem repeats in all my projects, can anybody explain me how to fix it?

这是完整错误的屏幕

推荐答案

解决方案很简单.在您的 pod 目标构建设置中,我更改了有效架构列表.此外,将 Build Architecture only 标志更改为 No 可以解决问题.

The solution is very simple. In your pods target, Build settings, I changed valid architectures list. Also Build architectures only flag change to No can resolve the problem.

这篇关于XCode 9.1 命令/bin/sh 失败,退出代码为 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆