我试图使用Azure DevOps设置CI管道,并且在xcode部分中运行管道时遇到以下错误:
'FirebaseCore/FirebaseCore.h' file not found
#import <FirebaseCore/FirebaseCore.h>
'FirebaseCore/FirebaseCore.h' file not found
#import <FirebaseCore/FirebaseCore.h>
** BUILD FAILED **
The following build commands failed:
CompileSwift normal arm64
CompileSwiftSources normal arm64 com.apple.xcode.tools.swift.compiler
(2 failures)
##[error]Error: /usr/bin/xcodebuild failed with return code: 65
Finishing: Xcode
我的podfile
的一小部分如下:
#Firebase
pod 'Firebase/Analytics'
pod 'Firebase/Auth'
pod 'FirebaseInstanceID', '~> 4.3'
我的azure-pipelines.yml
文件看起来像这样:
pool:
vmImage: 'macos-latest'
steps:
- task: CocoaPods@0
inputs:
forceRepoUpdate: true
projectDirectory: '$(system.defaultWorkingDirectory)'
displayName: 'pod install using the CocoaPods task with a forced repo update and a custom project directory'
- task: Xcode@5
inputs:
actions: 'build'
scheme: ''
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: '**/*.xcodeproj/project.xcworkspace'
xcodeVersion: 'default' # Options: 8, 9, 10, default, specifyPath
我一直试图通过尝试许多修复来解决它,但是没有任何帮助。现在我不知道该怎么办。如果有人在这方面帮助我,我将感到非常满意。