在设置了证书和私钥进行签名后,我正在尝试让 iOS 存档构建在 Travis CI 上工作。一切顺利,直到签名发生,此时构建被卡住,直到 travis CI 在超时后杀死它:
...
/usr/bin/codesign --force --sign 15E2916907037CFB777FC5F494A6CA252EF0895C --preserve-metadata=identifier,entitlements "/Users/travis/build/RestComm/restcomm-ios-sdk/build/Build/Intermediates/ArchiveIntermediates/restcomm-olympus/InstallationBuildProductsLocation/Applications/restcomm-olympus.app/Frameworks/sofiasip.framework"
No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself
Run Code Online (Sandbox Code Playgroud)
起初我认为这是这里描述的问题,所以我在我的“安全导入...”命令中添加了 -A 标志,但无济于事。
任何提示?
更多细节:
提前致谢,安东尼
我正在使用 fastlane 快照工具为应用程序屏幕拍摄快照。
According to fastlane community, i need to run,
fastlane snapshot init
Run Code Online (Sandbox Code Playgroud)
Then after configuring project ui test target, i need to run
fastlane snapshot
Run Code Online (Sandbox Code Playgroud)
But if I want to provide some build parameters like, xcodebuild test test-only params, how can I do that. For example i want to build like,
xcodebuild test -workspace <path>
-scheme <name>
-destination <specifier>
-only-testing:TestBundleA/TestSuiteA/TestCaseA
-only-testing:TestBundleB/TestSuiteB
-only-testing:TestBundleC
Run Code Online (Sandbox Code Playgroud)
I see,
fastlane snapshot --help
Run Code Online (Sandbox Code Playgroud)
Then I added in Snapfile,
xcargs -only-testing:TestBundleB/TestSuiteB
Run Code Online (Sandbox Code Playgroud)
But this gives error …
昨天我已经从 Xcode 8.1 升级到 8.3.2,当然我所有的 CI 构建基础设施再次失败(感谢 Apple,你总是知道如何让我更加忙碌!)。
因此,主要的破坏性变化是这-exportProvisioningProfile不再是一个有效的选择。据我了解,他们现在强迫我们使用-exportOptionsPlist。
我已经为我的一个应用程序配置了导出,以使用app-store仅适用于市场的方法的 .plist 文件。对于任何 AdHoc 导出,我很乐意使用-exportProvisioningProfile "$PROVISIONING_PROFILE". 不知道为什么苹果认为它很糟糕。
因此,现在我必须修改我的自动构建脚本以使用 .plist 文件进行任何导出。
我能够从xcodebuild -help这里的其他问题中找到我需要设置方法以ad-hoc进行内部分发的信息。好吧,这很容易,但是...
我到底该如何指定用于 IPA 导出的确切配置文件?
从 GUI 导出时我可以选择所需的配置文件,所以我相信应该有某种方法将其传递到xcodebuild. 但是,我仍然没有在网络上找到任何方法来做到这一点。
预先感谢各位。
ps 请不要建议使用自动配置文件管理,我有几个用于导出的配置文件专用于它们自己的目的,我需要明确说明在特定情况下使用其中哪一个(我的 bash 脚本在构建过程开始时定义它)。
尝试从命令行构建我的 iOS 框架时,我得到“MyFramework.framework.xcarchive”而不是“MyFramework.framework”。
在 Xcode 中构建时,我得到了正确的结果,而不是从命令行。
我的构建命令非常简单:
xcodebuild -project myFramework.xcodeproj -scheme myScheme -archivePath "/dev/builds" archive
Run Code Online (Sandbox Code Playgroud)
我的“.framework”文件在哪里?
当我收到来自 github 的推送事件时,我试图在我的代码构建脚本中读取提交消息。我的主要目标是使用skip ci包含 travis 或其他 ci 工具的消息跳过构建。
git show -s --format=%s(或git show任何选项)导致:
error: Could not read <previous SHA here>
fatal: unable to parse commit <previous SHA here>
Run Code Online (Sandbox Code Playgroud)
git log -1 --pretty=%s 也会导致错误。
我曾经git rev-parse --is-shallow-repository看到它是一个浅层存储库,我尝试使用git fetch --unshallow但导致此消息:
error in object: unshallow <SHA from a couple months ago>.
我知道的一些 git 命令确实有效
有谁知道如何从代码构建中的推送事件中读取提交消息?
我还要注意Source Versionaws 控制台中的提交 SHA。当我手动点击开始建设,并提供一个分支名 …
大家,我目前正在尝试在我的 git 存储库和我的 Angular 应用程序的 S3 存储桶之间构建一个 CodePipeline,但似乎无法通过构建。具体来说,我收到标题中的错误。
基本上,我按照本指南的步骤一步一步来:https : //medium.com/faun/ci-cd-with-angular-8-github-and-aws-codepipeline-b83d2b01e594
在大多数情况下,一切都按照指南中的描述进行。但是,有一部分说要修改构建规范中的 S3_Bucket 属性。我将在下面发布一个我的示例(网址名称已更改,但格式相同。)
根据错误,我觉得这可能是问题所在,但我似乎无法以一种可以使构建成功的格式获取 url。
version: 0.2
env:
variables:
CACHE_CONTROL: "86400"
S3_BUCKET: "NOTMYACTUALDOMAIN.com.s3-website.us-east-2.amazonaws.com"
BUILD_FOLDER: "dist"
phases:
install:
runtime-versions:
nodejs: 10
commands:
- echo Installing source NPM dependencies...
- npm install
- npm install -g @angular/cli
build:
commands:
Run Code Online (Sandbox Code Playgroud)
如果有帮助的话,这是构建的阶段表。
提交成功<1 秒 2019 年 10 月 26 日上午 1:41 2019 年 10 月 26 日上午 1:41
排队成功<1 秒 2019 年 10 月 26 日上午 1:41 2019 年 10 月 26 …
为了自动化我的应用程序构建过程,我正在尝试通过命令行构建我的iOS应用程序
构建命令
xcodebuild archive -project sample.xcodeproj -scheme "sample" -archivePath $PWD/archive/sample.xcarchive -destination generic/platform=iOS -UseModernBuildSystem=NO
Run Code Online (Sandbox Code Playgroud)
导出命令
xcodebuild -exportArchive -archivePath $PWD/archive/sample.xcarchive -exportOptionsPlist ./ExportOptions.plist -exportPath $PWD/build -UseModernBuildSystem=NO
Run Code Online (Sandbox Code Playgroud)
以下是错误
错误域 = IDEProvisioningErrorDomain 代码 = 9 “sample.app”需要配置文件。” UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription="sample.app" 需要配置文件。, NSLocalizedRecoverySuggestion=将配置文件添加到导出选项属性列表中的“provisioningProfiles”字典中。}
请注意,Xcode 的存档工作正常。并且存档文件夹中的 Info.plist 文件archive/sample.xcarchive/Info.plist不包含配置文件字典。
根据谷歌和 StackOverflow 上的其他建议,我尝试了以下方法
有人能帮我解决这个问题吗?
我正在尝试使用 Xcode 12 beta 4 构建一个支持 Apple Silicon 和 Mac Catalyst 的框架。该项目可以在 Xcode 中以“任何 Mac”目标构建良好。\n如果我使用以下命令
\nxcodebuild -project "project.xcodeproj" -configuration "Release" -scheme "MyScheme" -destination "generic/platform=macOS,variant=Mac Catalyst,name=Any Mac"\nRun Code Online (Sandbox Code Playgroud)\n我收到错误
\nxcodebuild: error: Unable to find a destination matching the provided destination specifier:\n { generic:1, platform:macOS, variant:Mac Catalyst, name:Any Mac }\n Unsupported device specifier option.\n The device \xe2\x80\x9cMy Mac\xe2\x80\x9d does not support the following options: name\n Please supply only supported device specifier options.\n...\nIneligible destinations for the "MyScheme" scheme:\n { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, …Run Code Online (Sandbox Code Playgroud) 我在 M1 mac mini 上配置了 Xcode 服务器。由于一些问题超出了问题的范围,我必须运行服务器,以便它在 Rosetta 下构建项目。
然而,通过在 Xcode“获取信息”视图或 Xcode Server Build 视图中勾选“在 Rosetta 下运行”似乎不起作用,这也得到了显示“Apple”架构的活动监视器的证实。
Xcode 13.2.1 macOS Big Sur 11.6.3
关于如何解决这个问题有什么想法吗?
现在我正在研究cocos2dx,我使用xcode构建一个演示,没关系,但是当我使用xcodebuild构建它时,它是错误的.
xcodebuild -project proj.ios/CoinFlip.ios.xcodeproj -scheme CoinFlip.ios -configuration Debug -sdk iphonesimulator6.1
Run Code Online (Sandbox Code Playgroud)
和错误的信息:
clang: error: invalid architecture 'arm' for deployment target '-mios-simulator-version-min=5.0'
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
Run Code Online (Sandbox Code Playgroud)
我该如何解决?谢谢!