小编Jop*_*son的帖子

xcode更新到8.0后,React Native run-ios构建失败.

好的,所以我已经在这个React Native项目上工作了几个星期,现在没有任何问题.我最近更新到xCode 8.0并且RN构建失败了.当我执行"react-native run-ios"时,它会返回"BUILD FAILED"错误.我通过xCode尝试了它,它返回类似的东西.我试着环顾四周,但似乎无法找到解决方案.我敢肯定,这可能是一些在xcode中发生变化的设置.

通过终端运行

>     ** BUILD FAILED **
> 
> 
> The following build commands failed:  CompileC
> /Users/macuser/Documents/FreeLance/theHaps/DaHAPS/ReactApp/ios/build/Build/Intermediates/RCTWebSocket.build/Debug-iphonesimulator/RCTWebSocket.build/Objects-normal/x86_64/RCTSRWebSocket.o
> RCTSRWebSocket.m normal x86_64 objective-c
> com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
> /Users/macuser/Documents/FreeLance/theHaps/DaHAPS/ReactApp/node_modules/promise/lib/done.js:10
>       throw err;
>       ^
> 
> Error: xcodebuild process exited with code 65
>     at ChildProcess.<anonymous> (runIOS.js:102:14)
>     at emitTwo (events.js:100:13)
>     at ChildProcess.emit (events.js:185:7)
>     at maybeClose (internal/child_process.js:850:16)
>     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
Run Code Online (Sandbox Code Playgroud)

通过xcode运行:

Xcode错误截图

谢谢!

xcode react-native xcode8

7
推荐指数
1
解决办法
6508
查看次数

无法解析符号'Auth'谷歌登录集成

还有另外一个问题,但这不是同一个错误.我相信我的所有依赖项都设置正确,但我不断收到'Auth'无法解决的错误.

构建Gradle应用程序

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.jophyjohnson.budgetme"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
    compile 'com.google.android.gms:play-services-cast:8.3.0'
    compile 'com.connectsdk:connect-sdk-android:1.6.0'


}
Run Code Online (Sandbox Code Playgroud)

构建Gradle项目

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies { …
Run Code Online (Sandbox Code Playgroud)

android android-studio

2
推荐指数
1
解决办法
5995
查看次数

标签 统计

android ×1

android-studio ×1

react-native ×1

xcode ×1

xcode8 ×1