当Xcode Service bot尝试使用run unit testsenabled 执行构建时,构建将始终失败.当我查看日志文件时,同样的错误会重复多次:
xcsbuildd[1966] <Warning>: [XCSBuildOperation.m:106 7368f310 +2126ms] Preflight connection to /var/XCSControl/com.apple.XCSTestUserPreflightService failed; retrying: No such file or directory
Run Code Online (Sandbox Code Playgroud)
几行后面跟着这些错误消息:
xcsbuildd[1966] <Error>: [XCSBuildOperation.m:102 7368f310 +2104ms] Timed out trying to connect to CG Session; giving up after 60 seconds
xcsbuildd[1966] <Error>: [XCSOperation.m:33 7368f310 +0ms] Error Domain=XCSBuildServiceDomain Code=0 "Cancelled integration because headless test environment is required but not available after 60s" UserInfo=0x7fa952571bd0 {NSLocalizedDescription=Cancelled integration because headless test environment is required but not available after 60s}
xcsbuildd[1966] <Debug>: …Run Code Online (Sandbox Code Playgroud) Vapor 3似乎没有读取Config/server.json文件,因此我无法配置Vapor 3应用程序绑定的主机名和端口.
Vapor 3有不同的方法吗?
我正在使用'adal-node'npm包来验证AzureAD.这一切都很好,我收到了一个令牌.
但是,在检查JWT令牌中的'aud'声明时,我看到观众GUID的前缀为'spn:'.我认为当我尝试在现有的Web API上使用JWT令牌时,这会导致我出现问题.当我使用相同的AzureAD通过WebApp进行身份验证时,'aud'声明不带有'spn:'前缀,我可以在WebAPI上调用端点.
任何人都可以对此有所了解吗?在经历了大量的工作之后,这是最后一个障碍.
更新:
使用npm包'azure-ad-jwt'在我收到它时立即用AzureAD验证JWT令牌给我一个错误,我怀疑是这个问题 - 'JWT观众无效'.期待'aud'声称不具有'spn:'前缀.这个spn前缀来自哪里?
这是我的app.js
var adal = require('adal-node');
var activeDirectoryEndpointUrl = 'https://login.microsoftonline.com/';
var options = {
domain: '<AzureAD GUID>',
activeDirectoryResourceId: '<AzureAD App Client ID 1>',
clientId: '<AzureAD App Client ID 2>'
};
var tokenCache = new adal.MemoryCache();
var authorityUrl = activeDirectoryEndpointUrl + options.domain;
var context = new adal.AuthenticationContext(authorityUrl, true, tokenCache);
context.acquireUserCode(options.activeDirectoryResourceId, options.clientId, 'en-us', function (err, userCodeResponse) {
if (err) {
console.error(err);
return;
}
console.log('Use a web browser to open the page ' + userCodeResponse.verificationUrl + …Run Code Online (Sandbox Code Playgroud) 我正在使用Parse,并尝试使用Schema API创建一个类,该类具有Pointer类型的字段.这是我正在做的事情:
curl -X POST \
-H "X-Parse-Application-Id: $PARSE_APP_ID" \
-H "X-Parse-Master-Key: $PARSE_APP_MASTER_KEY" \
-H "Content-Type: application/json" \
-d '
{
"className": "Article",
"fields": {
"heading": {
"type": "String"
},
"author": {
"type": "Pointer",
"classname": "Author"
}
}
}' \
https://api.parse.com/1/schemas/Article
Run Code Online (Sandbox Code Playgroud)
这会因API中的以下错误而失败:
{"code":135,"error":"type Pointer needs a class name"}
Run Code Online (Sandbox Code Playgroud)
Author类已经存在.我究竟做错了什么?