Post

Replies

Boosts

Views

Activity

Step 5: SHA256 hash of the public key failing
Hi. I'm trying to implement App Attest on my App and I followed the guidelines from https://developer.apple.com/documentation/devicecheck/validating_apps_that_connect_to_your_server but step 5 isn't waking. I got an example from https://blog.restlesslabs.com/john/ios-app-attest to implement all 9 steps using Python. Is there any example of this server-side implementation so I can double check what's wrong? PS: I saw one in Kotlin but that doesn't help me. I'm testing on an iPhone X and I can get the key identifier, the challenge and the attestation object. All steps except 5 are working (well, I had to base64 decode the identifier for step 9). Please, any help is appreciated. Regards, Cassio
1
0
1.2k
Nov ’21
Swift Packages + Dependencies + SwiftUI = Fail to Preview
I'm trying to create a project that has the following structure: Package Parser (a library and Resources) Package Posts (a library with SwiftUI and Resources) App itself Isolated, both Packages build and Preview successfully. The App also runs fine. When I add Package Parser to Package Posts as dependency to be able to use its Resources, I can build, test and run the App, but the Preview on Posts stop working. The message from diagnostic is: ld: warning: directory not found for option '-F/Applications/Xcode-beta.app/Contents/SharedFrameworks-iphonesimulator' Undefined symbols for architecture x86_64:   "nominal type descriptor for Parser.XMLPost", referenced from: Diagnostic - https://developer.apple.com/forums/content/attachment/8effb117-ffad-4ea6-859f-0cf47a12dea8 Here are the packages definitions: let package = Package(     name: "Parser",     platforms: [.iOS(.v14)],     products: [         .library(name: "Parser",                  targets: ["Parser"])     ],     targets: [         .target(name: "Parser",                 resources: [.process("Resources")]),         .testTarget(name: "ParserTests", dependencies: ["Parser"])     ] ) let package = Package(     name: "Posts",     platforms: [.iOS(.v14)],     products: [         .library(name: "Posts", targets: ["Posts"])     ],     dependencies: [         .package(path: "../Parser")     ],     targets: [         .target(name: "Posts", dependencies: ["Parser"]),         .testTarget(name: "PostsTests", dependencies: ["Posts"])     ] ) Is it possible to Preview a Swift Package that has a dependency? How? Thanks and regards, Cassio
3
1
2.3k
Jul ’20