mac-cain13 / R.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects
MIT License
9.49k stars 763 forks source link

Build error with SPM on Azure devops #818

Open devuzan opened 1 year ago

devuzan commented 1 year ago

Hi all,

I just implemented latest version of Rswift via SPM. It works correctly on my local machine but I couldnt build on my azure devops platform.

It says that.

2023-03-21T10:12:16.5213040Z /Users/runner/Library/Developer/Xcode/DerivedData/AppName-drtnhsmapwemhbbldkbvogbtrcef/SourcePackages/checkouts/R.swift/Package.swift: error: Bundle identifier is missing. RswiftGeneratePublicResources doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'RswiftGeneratePublicResources' from project 'Rswift')
2023-03-21T10:12:16.5316730Z note: Run script build phase 'R.swift generate resources for application AppName' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'AppName' from project 'AppName')
2023-03-21T10:12:16.5419570Z note: Run script build phase 'R.swift generate resources for application AppName' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'AppName' from project 'AppName')
2023-03-21T10:12:16.5522780Z /Users/runner/Library/Developer/Xcode/DerivedData/AppName-drtnhsmapwemhbbldkbvogbtrcef/SourcePackages/checkouts/R.swift/Package.swift: error: Bundle identifier is missing. RswiftGenerateInternalResources doesn't have a bundle identifier. Add a value for PRODUCT_BUNDLE_IDENTIFIER in the build settings editor. (in target 'RswiftGenerateInternalResources' from project 'Rswift')
2023-03-21T10:12:16.5624950Z ** BUILD FAILED **
2023-03-21T10:12:16.5725890Z 
2023-03-21T10:12:16.5829220Z ##[debug]Exit code 65 received from tool '/usr/bin/xcodebuild'

Have you any recommandation?

SandrikaJanjghava commented 1 year ago

I'm having the same problem on Azure pipelines. Also others are having problem with Xcode cloud. Also is opened the ticket: https://github.com/mac-cain13/R.swift/issues/777