Open rozaychen opened 4 months ago
make sure to do a recursive git clone when getting the code. looks like its not picking up submodules.
I get the same error message after running swift package clean
and git clone --recursive https://github.com/awslabs/aws-crt-swift.git
. Seems like it's not problem with recursive git clone.
Can you try git clone --recurse-submodules https://github.com/awslabs/aws-crt-swift.git
?
I tried Running this command then api-digester
, I also tried running git submodule update --init --recursive
instead, but both commands doesn't change anything. I'm still getting
#import "/Users/rozayc/Downloads/aws-crt-swift/aws-common-runtime/aws-c-auth/include/aws/auth/auth.h"
^
/Users/rozayc/Downloads/aws-crt-swift/aws-common-runtime/aws-c-auth/include/aws/auth/auth.h:9:10: error: 'aws/auth/exports.h' file not found
#include <aws/auth/exports.h>
^
<unknown>:0: error: could not build Objective-C module 'AwsCAuth'
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Users/rozayc/Downloads/aws-crt-swift/aws-common-runtime/aws-c-cal/include/aws/cal/cal.h"
^
Failed to load module: AwsCommonRuntimeKit
Describe the bug
Hi!
I have aws-crt-swift as a dependency of my library (integrated with SPM). I'd like to use swift-api-digester to diagnose breaking API changes. I do this by running swift build and then swift api-digester. These are the commands I run:
swift build --target $module
The build command succeeds; however, the swift-api-digester fails with this error:
I tried to debug by running
swift build
thenswift api-digester
in aws-crt-swift, and I get this error:Do you have any recommendations for how I might be able to solve this issue? Thanks!
Expected Behavior
Expected to generate json file in the api-dump folder when running
swift api-digester
Current Behavior
Has the
failed to load module
errorReproduction Steps
In the aws-crt-swift directory, run
swift build
Then runswift api-digester -sdk "$(xcrun --show-sdk-path)" -dump-sdk -module "AwsCommonRuntimeKit" -o ./api-dump/AwsCommonRuntimeKit.json -I .build/debug
Possible Solution
No response
Additional Information/Context
No response
aws-crt-swift version used
0.26.0
Compiler and Version used
swift 5.9.0
Operating System and version
macos v14.4.1