问题标签 [xcode-server]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ios - 在模拟器中运行 Xcode Server 机器人
我已经创建了一些机器人来构建、分析和运行单元测试,但我无法让它在模拟器中工作。所有集成总是以 12 个错误结束,每个模拟设备都有一个错误。
断言:测试目标MyAppTests遇到错误(无法完成操作。(OSStatus 错误 -1712。)如果您认为此错误代表错误,请在 /Library/Developer/XcodeServer/Integrations/Integration- 附加日志文件7d62a04eb43957f1d3098c8ffb64cc13/Session-2016-06-22_20:00:39-svEh7I.log)
同样的错误会重复 12 次。我相信这与模拟器有关,因为测试只在真实设备上通过。
模拟器工作需要做一些技巧吗?设备的机器人配置是使用All iOS Devices 和 Simulatos进行测试。
提前致谢。
ios - 执行持续集成时找不到头文件
我正在使用私人可可豆荚,项目构建和运行良好,当我尝试在集成中运行机器人时,问题正在发生。我刚刚开始设置构建服务器(使用 OS X 服务器和 Xcode)。
以下是其中一个错误: HM Mobile Assets Bot 的 Bot Issue (APIClient.h:10 中的错误) Integration #4 of HM Mobile Assets Bot Open in Xcode: xcbot://Xcode CI Server/botID/6b81ceecaf09d4f1f4bdc2c592001f27/integrationID/6b81ceecaf09d4f1f4bdc2c5920c5565
断言:找不到“SAKKit/HMAPIClient.h”文件文件:mobile-assets-ios/HM Mobile Assets/Application Classes/APIClient.h:10
3 次集成前引入
附加了此集成的完整日志。
这是日志:
=== 分析项目的目标 HM 移动资产 HM Mobile Assets WITH CONFIGURATION Release ===
CompileC /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets.build/Objects-normal/i386/Unit.o HM \Mobile\Assets/Model\Classes/Unit.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler cd /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets- ios export LANG=en_US.US-ASCII export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin :/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault。xctoolchain/usr/bin/clang -x Objective-c -arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules - fmodules-cache-path=/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Library/Developer/ XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/ModuleCache/Session。modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os - fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-根类 -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -W括号 -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-变量 -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-转换 -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match-Wundeclared-selector -Wno-deprecated-implementations -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -fvisibility=hidden -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets.build/HM\ Mobile\ Assets-generated-files .hmap -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM\Mobile\Assets。build/Release-iphonesimulator/HM\ Mobile\ Assets.build/HM\ Mobile\ Assets-own-target-headers.hmap -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets.build/HM\ Mobile\ Assets-all-target-headers.hmap -iquote /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/中间体/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets.build/HM\ Mobile\ Assets-project-headers。hmap -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Products/Release-iphonesimulator/include -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets- Pods/Headers/Public -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/AFNetworking -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c5920/ Source/mobile-assets-ios/Pods/Headers/Public/AFOAuth2Manager -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/Crashlytics -I/Library/开发人员/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/Fabric-I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/MBProgressHUD -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source -ios/Pods/Headers/Public/MagicalRecord -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/SAKKit -I/Library/Developer/XcodeServer/Integrations /Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/SSKeychain -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM\Mobile\Assets.build/ -iphonesimulator/HM\移动\资产。build/DerivedSources/i386 -I/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets。build/DerivedSources -F/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Products/Release-iphonesimulator -F/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/ Pods/Crashlytics/iOS -F/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Fabric/iOS -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f7 mobile-assets-ios/Pods/Headers/Public -isystem /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/AFNetworking -isystem /Library/Developer/XcodeServer/集成/缓存/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/AFOAuth2Manager-isystem /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/Crashlytics -isystem /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/ -ios/Pods/Headers/Public/Fabric -isystem /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/MBProgressHUD -isystem /Library/Developer/XcodeServer/Integrations /Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/MagicalRecord -isystem /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/P -isystem/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/Pods/Headers/Public/SSKeychain -MMD -MT 依赖项-MF /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27//DerivedData//构建/中间体/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets.build/Objects-normal/i386/Unit.d --serialize-diagnostics /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27 /DerivedData/Build/Intermediates/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets.build/Objects-normal/i386/Unit.dia -c /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27 /Source/mobile-assets-ios/HM\ Mobile\ Assets/Model\ Classes/Unit。m -o /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/DerivedData/Build/Intermediates/HM\ Mobile\ Assets.build/Release-iphonesimulator/HM\ Mobile\ Assets.build/Objects-normal/i386/Unit。 ○
在 /Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27/Source/mobile-assets-ios/HM Mobile Assets/Model Classes/Unit.m:11 中包含的文件中:/Library/Developer/XcodeServer/Integrations/Caches/6b81ceecaf09d4f1f4bdc2c592001f27 /Source/mobile-assets-ios/HM Mobile Assets/Application Classes/APIClient.h:10:9:致命错误:找不到“SAKKit/HMAPIClient.h”文件
进口
产生 1 个错误。
xcode - 如何从 Xcode 生成测试用例报告
我正在使用默认的 XCTest 测试框架来编写和测试应用程序,我可以做到这一点。但是要生成测试用例报告,除了Xcode Server之外,我没有看到任何选项。有没有其他方法可以生成测试用例报告!!任何建议!
xcode - 无法从 Xcode Server 登录 iMessage 上的 jabber
我配置了我的 Xcode 服务器:
我添加了用户帐户Users
:
在 iMessage 应用程序中登录Jabber帐户。
但由于永久警报,我无法登录:
这是什么原因,我该如何解决这个问题?
我按照关于 SO 的另一个问题的教程进行操作。
ios - 仅集成期间的 Xcode Bot 位码错误
ld: '/Library/Developer/XcodeServer/Integrations/Caches/5c17d3e903f4d302cf453 40fb301f30f/Source/ocular/Pods/Sodium/Sodium/libsodium-ios.a(libsodium_la-crypto_box.o)' 不包含位码。您必须在启用位码的情况下重建它(Xcode 设置 ENABLE_BITCODE),从供应商处获取更新的库,或禁用此目标的位码。对于架构 armv7
我/usr/local/bin/pod install
在集成(触发器)之前运行。
我能够在模拟器和真实设备中构建和运行应用程序。但是,我与机器人的集成失败并出现上述错误消息。我Sodium
通过 cocoapods 安装。
我尝试设置ENBALE_BITCODE = NO
项目/目标/Pods
服务器:5.1.7 Xcode:7.3.1
任何帮助表示赞赏。
continuous-integration - Xcode Server Bot 集成在 xcrun xcodebuild -exportArchive "Exporting installable product" 上停止
Xcode Server Bot 集成在第六阶段停止:
“导出可安装产品”
原始构建日志显示为最终条目:
最终,集成达到超时限制并失败并出现错误:
断言:正在运行的任务被终止,因为它超过 1200 秒没有产生任何活动(使用 sudo xcrun xcscontrol --configure-integration-timeout 增加此超时)
将超时时间增加到超过 1200 秒(20 分钟)是没有意义的,因为它永远不会完成。早期阶段需要 3 分钟,因此 17 分钟是足够的时间来导出。
诸如此类的其他帖子没有提供解决方案:
Xcode Server Bot 集成无法导出存档并带有断言失败:exportArchive: ipatool failed with an exception
Xcode Server Bot 集成无法导出存档:错误 Domain=IDEDistributionErrorDomain Code=1“无法完成操作。”
将私钥 -通过拖动- 从登录用户复制到系统钥匙串也没有解决:
紧抓着稻草,我尝试了几乎所有其他方法,包括--sync-portal
教程Xcode Server Hacks 中描述的所有内容: 2. 使用 xcscontrol 进行控制。
更不用说明显的重新启动 - 不是重置!- 使用这个命令:
几乎尝试了我能想到的所有方法,如何解决这个问题?
ios - XCode-bot 在物理设备上构建失败
今天我第一次将真实设备连接到我的 XCode 服务器(Xcode 7.3.1,iOS 9.3.4),这就是我得到的:
我的机器人有一个调试模式和一些单元和 UI 测试,如果我分离 iphone,一切都在模拟器上运行良好。
有人已经遇到过这个问题吗?你找到解决办法了吗?