设置expo ios时如何修复Windows上glog安装错误

设置expo ios时如何修复Windows上glog安装错误,ios,bash,react-native-ios,windows-subsystem-for-linux,glog,Ios,Bash,React Native Ios,Windows Subsystem For Linux,Glog,在Windows 10上运行pod install时安装glog时出错。我正在尝试使用Expo从Windows测试iOS应用程序 在错误日志中,我发现运行react native\scripts\ios configure glog.sh时引发了语法错误:换行符意外(预期“)。我有WSL 我已经按照更新了Ruby。我不知道cocoapod的详细情况,因此无法自信地修复语法错误。请帮忙 错误日志 $>pod install Installing unimodules: expo-app-

在Windows 10上运行
pod install
时安装glog时出错。我正在尝试使用Expo从Windows测试iOS应用程序

在错误日志中,我发现运行
react native\scripts\ios configure glog.sh
时引发了
语法错误:换行符意外(预期“)
。我有WSL

我已经按照更新了Ruby。我不知道cocoapod的详细情况,因此无法自信地修复语法错误。请帮忙

错误日志

$>pod install

Installing unimodules:
 expo-app-loader-provider@8.0.0 from ../node_modules/expo-app-loader-provider/ios
 expo-constants@8.0.0 from ../node_modules/expo-constants/ios
 expo-error-recovery@1.0.0 from ../node_modules/expo-error-recovery/ios
 expo-file-system@8.0.0 from ../node_modules/expo-file-system/ios
 expo-font@8.0.0 from ../node_modules/expo-font/ios
 expo-keep-awake@8.0.0 from ../node_modules/expo-keep-awake/ios
 expo-linear-gradient@8.0.0 from ../node_modules/expo-linear-gradient/ios
 expo-location@8.0.0 from ../node_modules/expo-location/ios
 expo-permissions@8.0.0 from ../node_modules/expo-permissions/ios
 expo-sqlite@8.0.0 from ../node_modules/expo-sqlite/ios
 expo-web-browser@8.0.0 from ../node_modules/expo-web-browser/ios
 unimodules-barcode-scanner-interface@5.0.0 from ../node_modules/unimodules-barcode-scanner-interface/ios
 unimodules-camera-interface@5.0.0 from ../node_modules/unimodules-camera-interface/ios
 unimodules-constants-interface@5.0.0 from ../node_modules/unimodules-constants-interface/ios
 unimodules-core@5.0.0 from ../node_modules/@unimodules/core/ios
 unimodules-face-detector-interface@5.0.0 from ../node_modules/unimodules-face-detector-interface/ios
 unimodules-file-system-interface@5.0.0 from ../node_modules/unimodules-file-system-interface/ios
 unimodules-font-interface@5.0.0 from ../node_modules/unimodules-font-interface/ios
 unimodules-image-loader-interface@5.0.0 from ../node_modules/unimodules-image-loader-interface/ios
 unimodules-permissions-interface@5.0.0 from ../node_modules/unimodules-permissions-interface/ios
 unimodules-react-native-adapter@5.0.0 from ../node_modules/@unimodules/react-native-adapter/ios
 unimodules-sensors-interface@5.0.0 from ../node_modules/unimodules-sensors-interface/ios
 unimodules-task-manager-interface@5.0.0 from ../node_modules/unimodules-task-manager-interface/ios

Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `RNGestureHandler` from `../node_modules/react-native-gesture-handler/RNGestureHandler.podspec`
Fetching podspec for `RNReanimated` from `../node_modules/react-native-reanimated/RNReanimated.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
Downloading dependencies
Installing DoubleConversion (1.1.6)
Installing EXAppLoaderProvider (8.0.0)
Installing EXConstants (8.0.0)
Installing EXErrorRecovery (1.0.0)
Installing EXFileSystem (8.0.0)
Installing EXFont (8.0.0)
Installing EXKeepAwake (8.0.0)
Installing EXLinearGradient (8.0.0)
Installing EXLocation (8.0.0)
Installing EXPermissions (8.0.0)
Installing EXSQLite (8.0.0)
Installing EXWebBrowser (8.0.0)
Installing FBLazyVector (0.61.5)
Installing FBReactNativeSpec (0.61.5)
Installing Folly (2018.10.22.00)
Installing RCTRequired (0.61.5)
Installing RCTTypeSafety (0.61.5)
Installing RNGestureHandler (1.5.2)
Installing RNReanimated (1.4.0)
Installing RNScreens (2.0.0-alpha.22)
Installing React (0.61.5)
Installing React-Core (0.61.5)
Installing React-CoreModules (0.61.5)
Installing React-RCTActionSheet (0.61.5)
Installing React-RCTAnimation (0.61.5)
Installing React-RCTBlob (0.61.5)
Installing React-RCTImage (0.61.5)
Installing React-RCTLinking (0.61.5)
Installing React-RCTNetwork (0.61.5)
Installing React-RCTSettings (0.61.5)
Installing React-RCTText (0.61.5)
Installing React-RCTVibration (0.61.5)
Installing React-cxxreact (0.61.5)
Installing React-jsi (0.61.5)
Installing React-jsiexecutor (0.61.5)
Installing React-jsinspector (0.61.5)
Installing ReactCommon (0.61.5)
Installing UMBarCodeScannerInterface (5.0.0)
Installing UMCameraInterface (5.0.0)
Installing UMConstantsInterface (5.0.0)
Installing UMCore (5.0.0)
Installing UMFaceDetectorInterface (5.0.0)
Installing UMFileSystemInterface (5.0.0)
Installing UMFontInterface (5.0.0)
Installing UMImageLoaderInterface (5.0.0)
Installing UMPermissionsInterface (5.0.0)
Installing UMReactNativeAdapter (5.0.0)
Installing UMSensorsInterface (5.0.0)
Installing UMTaskManagerInterface (5.0.0)
Installing Yoga (1.14.0)
Installing boost-for-react-native (1.63.0)
Installing glog (0.3.5)
#!/bin/bash
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

set -e

PLATFORM_NAME="${PLATFORM_NAME:-iphoneos}"
CURRENT_ARCH="${CURRENT_ARCH}"

if [ -z "$CURRENT_ARCH" ] || [ "$CURRENT_ARCH" == "undefined_arch" ]; then
    # Xcode 10 beta sets CURRENT_ARCH to "undefined_arch", this leads to incorrect linker arg.
    # it's better to rely on platform name as fallback because architecture differs between simulator and device

    if [[ "$PLATFORM_NAME" == *"simulator"* ]]; then
        CURRENT_ARCH="x86_64"
    else
        CURRENT_ARCH="armv7"
    fi
fi

export CC="$(xcrun -find -sdk $PLATFORM_NAME cc) -arch $CURRENT_ARCH -isysroot $(xcrun -sdk $PLATFORM_NAME --show-sdk-path)"
export CXX="$CC"

# Remove automake symlink if it exists
if [ -h "test-driver" ]; then
    rm test-driver
fi

./configure --host arm-apple-darwin

# Fix build for tvOS
cat << EOF >> src/config.h

/* Add in so we have Apple Target Conditionals */
#ifdef __APPLE__
#include <TargetConditionals.h>
#include <Availability.h>
#endif

/* Special configuration for AppleTVOS */
#if TARGET_OS_TV
#undef HAVE_SYSCALL_H
#undef HAVE_SYS_SYSCALL_H
#undef OS_MACOSX
#endif

/* Special configuration for ucontext */
#undef HAVE_UCONTEXT_H
#undef PC_FROM_UCONTEXT
#if defined(__x86_64__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip
#elif defined(__i386__)
#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip
#endif
EOF

# Prepare exported header include
EXPORTED_INCLUDE_DIR="exported/glog"
mkdir -p exported/glog
cp -f src/glog/log_severity.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/raw_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/stl_logging.h "$EXPORTED_INCLUDE_DIR/"
cp -f src/glog/vlog_is_on.h "$EXPORTED_INCLUDE_DIR/"

/bin/bash: xcrun: command not found
/bin/bash: xcrun: command not found
: not found: 16: ./configure:
./configure: 32: ./configure: Syntax error: newline unexpected (expecting ")")
$>pod安装
安装Unicode模块:
世博会应用程序加载器-provider@8.0.0来自../node_模块/expo应用程序加载程序提供商/ios
博览会-constants@8.0.0来自../node_模块/expo常量/ios
expo错误-recovery@1.0.0来自../node_模块/expo错误恢复/ios
世博档案-system@8.0.0来自../node_模块/expo文件系统/ios
博览会-font@8.0.0来自../node_模块/expo字体/ios
世博馆-awake@8.0.0来自../node_模块/expo保持唤醒/ios
线性博览会-gradient@8.0.0来自../node_模块/expo线性渐变/ios
博览会-location@8.0.0来自../node_模块/expo位置/ios
博览会-permissions@8.0.0来自../node_模块/expo权限/ios
博览会-sqlite@8.0.0来自../node_模块/expo sqlite/ios
世博网-browser@8.0.0来自../node_模块/expo web浏览器/ios
unimodules条码扫描器-interface@5.0.0来自../node_模块/unimodules条形码扫描仪接口/ios
单模块照相机-interface@5.0.0来自../node_模块/unimodules摄像头接口/ios
单模常数-interface@5.0.0来自../node_模块/unimodules常量接口/ios
单模块-core@5.0.0来自../node_modules/@unimodules/core/ios
单模块人脸检测器-interface@5.0.0来自../node_模块/unimodules人脸检测接口/ios
unimodules文件系统-interface@5.0.0来自../node_modules/unimodules文件系统接口/ios
unimodules字体-interface@5.0.0来自../node_模块/unimodules字体界面/ios
unimodules图像加载程序-interface@5.0.0来自../node_模块/unimodules图像加载程序接口/ios
单模块权限-interface@5.0.0来自../node_模块/unimodules权限界面/ios
单模块本机反应-adapter@5.0.0来自../node_modules/@unimodules/react native adapter/ios
单模块传感器-interface@5.0.0来自../node_模块/unimodules传感器接口/ios
unimodules任务管理器-interface@5.0.0来自../node_模块/unimodules任务管理器界面/ios
分析依赖关系
正在从“../node\u modules/react native/third party podspecs/DoubleConversion.podspec”获取“DoubleConversion”的podspec`
正在从`../node\u modules/react native/third party podspecs/Folly.podspec获取'Folly'的podspec`
正在从`../node\u modules/react native手势处理程序/RNGestureHandler.podspec获取“RNGestureHandler”的podspec`
正在从“../node\u modules/react native reanimated/RNReanimated.podspec”获取“RNReanimated”的podspec`
正在从“../node\u modules/react native/third party podspecs/glog.podspec”获取“glog”的podspec`
下载依赖项
安装双重转换(1.1.6)
安装EXAppLoaderProvider(8.0.0)
安装EXConstants(8.0.0)
安装火工品回收(1.0.0)
安装EXFileSystem(8.0.0)
安装EXFont(8.0.0)
安装EXKeepAwake(8.0.0)
安装EXLinearGradient(8.0.0)
安装EXLocation(8.0.0)
安装经验(8.0.0)
安装EXSQLite(8.0.0)
安装EXWebBrowser(8.0.0)
安装FBLazyVector(0.61.5)
安装FBReactNativeSpec(0.61.5)
安装Folly(2018.10.22.00)
安装要求的RCT(0.61.5)
安装RCT类型安全(0.61.5)
安装RNGestureHandler(1.5.2)
安装RNReanimated(1.4.0)
安装RNS屏幕(2.0.0-alpha.22)
安装反应器(0.61.5)
安装反应芯(0.61.5)
安装模块(0.61.5)
安装反作用RCT图纸(0.61.5)
安装反作用力反作用力(0.61.5)
安装反应式RCTBlob(0.61.5)
安装反作用力限制器(0.61.5)
安装React RCT链接(0.61.5)
安装反应式RCT网络(0.61.5)
安装React RCT设置(0.61.5)
安装React RCTText(0.61.5)
安装反作用力振动(0.61.5)
安装React cxxreact(0.61.5)
安装React jsi(0.61.5)
安装React jsiexecutor(0.61.5)
安装检测仪(0.61.5)
安装通用(0.61.5)
安装伞形电缆接口(5.0.0)
安装UMCameraInterface(5.0.0)
安装UMConstantInterface(5.0.0)
安装UMCore(5.0.0)
安装UMFaceDetector接口(5.0.0)
安装UMFileSystemInterface(5.0.0)
安装UMFontInterface(5.0.0)
安装UMImageLoader接口(5.0.0)
在接口(5.0.0)中安装UMPermissions
安装UMReactNativeAdapter(5.0.0)
将UMSensor安装到接口(5.0.0)
安装UMTaskManagerInterface(5.0.0)
安装瑜伽(1.14.0)
为react native(1.63.0)安装增压器
安装glog(0.3.5)
#!/bin/bash
#版权所有(c)Facebook,Inc.及其附属公司。
#
#此源代码根据MIT许可证获得许可,该许可证位于
#此源目录树的根目录中的许可证文件。
set-e
平台名称=“${PLATFORM\u NAME:-iphoneos}”
CURRENT_ARCH=“${CURRENT_ARCH}”
如果[-z“$CURRENT_ARCH”]| |[“$CURRENT_ARCH”==“undefined_ARCH”];然后
#Xcode 10 beta将当前链接设置为“未定义的链接”,这将导致不正确的链接器参数。
#最好依靠平台名称作为后备方案,因为模拟器和设备的体系结构不同
如果[[“$PLATFORM_NAME”==*“模拟器”*];然后
当前\u ARCH=“x86\u 64”
其他的
当前\u ARCH=“armv7”
fi
fi
export CC=“$(xcrun-find-sdk$PLATFORM\u NAME CC)-arch$CURRENT\u arch-isysroot$(xcrun-sdk$PLATFORM\u NAME--show sdk path)”
导出CXX=“$CC”
#删除automake符号链接(如果存在)
如果[-h“测试驾驶员”];然后
rm测试驱动程序
fi
./configure——主机arm
#修复tvOS的构建
cat>src/config.h
/*加上这样我们就有了苹果的目标条件*/
#苹果__
#包括
#包括
#恩迪夫
/*特殊结构