Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac Catalyst archive fails on duped objects #1784

Closed
sbruens opened this issue Nov 13, 2023 · 0 comments
Closed

Mac Catalyst archive fails on duped objects #1784

sbruens opened this issue Nov 13, 2023 · 0 comments
Assignees
Labels
build issue Issues related to the build system os/maccatalyst

Comments

@sbruens
Copy link
Contributor

sbruens commented Nov 13, 2023

#1630 added Mac Catalyst support to our iOS project which builds and runs as expected. However, when trying to archive (i.e. create an optimized device build) for release we run into build issues:

Command:

xcodebuild clean -workspace src/cordova/apple/ios.xcworkspace \
        -scheme Outline -destination 'generic/platform=macOS,variant=Mac Catalyst' \
        archive -configuration Release

Error:

error: Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwift.o'
    note: Target 'CocoaLumberjackSwift' (project 'CocoaLumberjack') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwift.o'
    note: Target 'CocoaLumberjackSwift' (project 'CocoaLumberjack') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwift.o'
error: Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjack.o'
    note: Target 'CocoaLumberjack' (project 'CocoaLumberjack') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjack.o'
    note: Target 'CocoaLumberjack' (project 'CocoaLumberjack') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjack.o'
error: Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineNotification.o'
    note: Target 'OutlineNotification' (project 'OutlineAppleLib') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineNotification.o'
    note: Target 'OutlineNotification' (project 'OutlineAppleLib') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineNotification.o'
error: Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwiftSupport.o'
    note: Target 'CocoaLumberjackSwiftSupport' (project 'CocoaLumberjack') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwiftSupport.o'
    note: Target 'CocoaLumberjackSwiftSupport' (project 'CocoaLumberjack') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwiftSupport.o'
error: Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppKitBridge.o'
    note: Target 'OutlineAppKitBridge' (project 'OutlineAppleLib') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppKitBridge.o'
    note: Target 'OutlineAppKitBridge' (project 'OutlineAppleLib') has a command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppKitBridge.o'
error: Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppleLib_OutlineAppKitBridge.bundle'
    note: Target 'OutlineAppleLib_OutlineAppKitBridge' (project 'OutlineAppleLib') has create directory command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppleLib_OutlineAppKitBridge.bundle'
    note: Target 'OutlineAppleLib_OutlineAppKitBridge' (project 'OutlineAppleLib') has create directory command with output '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppleLib_OutlineAppKitBridge.bundle'


Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwift.o'

Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjack.o'

Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineNotification.o'

Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/CocoaLumberjackSwiftSupport.o'

Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppKitBridge.o'

Multiple commands produce '/Users/sbruens/Library/Developer/Xcode/DerivedData/ios-hevczjegdwwzgfauwbictbyosask/Build/Intermediates.noindex/ArchiveIntermediates/Outline/IntermediateBuildFilesPath/UninstalledProducts/macosx/OutlineAppleLib_OutlineAppKitBridge.bundle'

We are getting duplicate objects from the AppKitBridge target which is bundled into the main app target to allow us to use the AppKit API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build issue Issues related to the build system os/maccatalyst
Projects
None yet
Development

No branches or pull requests

1 participant