目前我正在一个框架项目中工作,以分发给我们拥有的客户。该框架具有 SPM 依赖项,我想从中创建一个 XCFramework。我找到了使用该xcodebuild
工具存档和生成 XCFramework 的脚本。问题是生成不工作,我收到以下错误Failed to build module 'XXX' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced
。我不知道是否可以构建一个具有 SPM 依赖项的框架作为 XCFramework 我试图将它作为二进制框架分发以保护我们的源代码。我以前寻找过这个,但找不到任何有关此事的信息。有人可以帮助我吗?
我遵循的是angular-oauth2-oidc库的入门指南,但是它存储的唯一内容是nonce
值,access_token
它不会出现在任何地方。
这是我的配置AuthConfig
。
export const AUTHCONFIG: AuthConfig = {
loginUrl: 'https://login.microsoftonline.com/xxxxxxxx/oauth2/authorize',
redirectUri: window.location.origin + '/', //localhost:4200/
clientId: 'the id of my angular app registered in azure',
resource: 'the id of my web api in nodejs also registered',
oidc: true,
requireHttps: false // this is for testing in localhost
};
Run Code Online (Sandbox Code Playgroud)
我app.component.ts
有以下内容:
export class AppComponent {
constructor(private oauthService: OAuthService) {this.loadConfig()}
loadConfig(): void {
this.ouathService.configure(AUTHCONFIG);
this.ouathService.tokenValidationHandler
= new JwksValidationHandler();
this.ouathService.token.setStorage(localStorage);
}
}
Run Code Online (Sandbox Code Playgroud)
在我的login.component.ts
我有:
export …
Run Code Online (Sandbox Code Playgroud) openid oauth-2.0 azure-active-directory angular angular-oauth2-oidc