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

FluentUI cannot be used in pod subspecs with multiple targets in a single Xcode project #602

Open
1 of 2 tasks
levinli303 opened this issue Jun 10, 2021 · 0 comments
Open
1 of 2 tasks

Comments

@levinli303
Copy link
Member

Environment Information

  • Platform:
    • iOS
    • macOS
  • Package version(s): CocoaPods 0.2.7
  • Xcode and OS versions: Xcode 12.5

Please provide a reproduction of the bug:

  1. Create an Xcode project, add an additional target to the project
  2. pod init, and use subspec to add dependencies to each targets, for example
target 'FluentUIBuildingIssue' do
  use_frameworks!
  pod 'MicrosoftFluentUI/Shimmer_ios', '~> 0.2.5'
  pod 'MicrosoftFluentUI/ActivityIndicator_ios', '~> 0.2.5'
end

target 'FluentUIBuildingIssueTarget2' do
  use_frameworks!
  pod 'MicrosoftFluentUI/HUD_ios', '~> 0.2.5'
end
  1. pod install and try to build a target

Actual behavior:

xcodebuild: error: The project '****/FluentUIBuildingIssue/Pods/Pods.xcodeproj' does not contain a target named 'MicrosoftFluentUI-FluentUIResources-ios'.

CocoaPods created separate targets in the Pods.xcodeproj, the script in [CP-User] Optimize resource bundle does not match MicrosoftFluentUI-FluentUIResources-ios.

Screen Shot 2021-06-10 at 3 30 33 PM

Expected behavior:

It should build fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant