Skip to content

[Swift APIView] cannot resolve framework references #6472

Open

Description

Setup:
MacOS 13.4.1 (M1 Pro)
Xcode 14.3.1, no other version installed on the machine

Repro setups:

  1. Clone azure-sdk-tools from GitHub
  2. Open SwiftAPIView.xcworkspace using Xcode
  3. Build SwiftAPIView project
  4. Open build target folder by going to menu Product-> Show Build Folder in Finder
  5. Navigate to Product/Debug, SwiftAPIView should be in there
  6. Go to https://github.com/Azure/Communication/releases/tag/v2.4.1
  7. Download the zip file for ACS calling 2.4.1
  8. Extract the zip file, copy AzureCommunicationCalling.xcframework to /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug (will be different per machine, this is where the SwiftAPIView output is)
  9. Open terminal, navigate to .../Product/Debug
  10. Run the following command for SwiftAPIView: gaobob@Bobs-Laptop Debug % ./SwiftAPIView --source=./AzureCommunicationCalling.xcframework --package-name=AzureCommunicationCalling --package-version=2.4.1 --dest=AzureCommunicationCalling-2.4.1.json
  11. Observe the following errors in the output, the output JSON is only 58kb and missing almost all of the classes.
  12. Please see generated json. GitHub won't let me upload .json, so I added a .zip extension. Please rename and remove .zip to open the json file.
    AzureCommunicationCalling-2.4.1.json.zip

gaobob@Bobs-Laptop Debug % ./SwiftAPIView --source=./AzureCommunicationCalling.xcframework --package-name=AzureCommunicationCalling --package-version=2.4.1 --dest=AzureCommunicationCalling-2.4.1.json
objc[4146]: Class _TtC11SwiftSyntax16BumpPtrAllocator is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x10407a568) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a8ca10). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax35IncrementalParseReusedNodeCollector is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x10407a750) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a8cbc0). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax26IncrementalParseTransition is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x10407a7e8) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a8cc58). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax23SourceLocationConverter is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x10407f918) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a8cd98). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax11SyntaxArena is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x10407fbb0) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a8cfb8). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax18ParsingSyntaxArena is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x10407fcd0) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a8d0b8). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax16SyntaxAnyVisitor is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x104081ba0) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a8f940). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax14SyntaxRewriter is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x104085f20) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a93a30). One of the two will be used. Which one is undefined.
objc[4146]: Class _TtC11SwiftSyntax13SyntaxVisitor is implemented in both /Users/gaobob/Library/Developer/Xcode/DerivedData/SwiftAPIView-ehzuyxphgnefwefudpgkzagqfbhh/Build/Products/Debug/Frameworks/SwiftAPIViewCore.framework/Versions/A/SwiftAPIViewCore (0x104087228) and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftSyntax.dylib (0x105a94c18). One of the two will be used. Which one is undefined.
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling-Swift.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/ACSVideoStreamRenderer.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/ACSVideoStreamRendererView.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/ACSFeatures.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/ACSCallKit.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-x86_64-simulator/AzureCommunicationCalling.framework/Headers/ACSStreamSize.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling-Swift.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/ACSVideoStreamRenderer.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/ACSVideoStreamRendererView.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/ACSFeatures.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/ACSCallKit.h'
:1:9: note: in file included from :1:
#import "Headers/AzureCommunicationCalling.h"
^
././AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/AzureCommunicationCalling.h:9:9: error: 'AzureCommunicationCommon/AzureCommunicationCommon-Swift.h' file not found
#import <AzureCommunicationCommon/AzureCommunicationCommon-Swift.h>
^
:0: error: failed to import bridging header './AzureCommunicationCalling.xcframework/ios-arm64/AzureCommunicationCalling.framework/Headers/ACSStreamSize.h'
gaobob@Bobs-Laptop Debug %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

  • Status

    📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions