bielikb / xcframeworks

Demonstration of creating and integrating xcframeworks and their co-op with static libraries and Swift packages
MIT License
539 stars 46 forks source link

PRODUCT_NAME was misdefined #10

Open pantomath91 opened 3 years ago

pantomath91 commented 3 years ago

Getting _PRODUCT_NAME was misdefined: Sample. Please, provide :productname option error, even through providing the product_name option externally

create_xcframework( workspace: "Myapp.xcworkspace", scheme: "Myapp-Universal", product_name: 'Myapp', # optional if scheme doesnt match the name of your framework destinations: ['iOS'], xcframework_output_directory: '../../bin' )

Stack

Key Value
OS 10.15.7
Ruby 2.7.2
Bundler? false
Git git version 2.15.0
Installation Source /usr/local/Cellar/fastlane/2.174.0/libexec/bin/fastlane
Host Mac OS X 10.15.7 (19H2)
Ruby Lib Dir /usr/local/Cellar/ruby@2.7/2.7.2/lib
OpenSSL Version OpenSSL 1.1.1i 8 Dec 2020
Is contained false
Is homebrew true
Is installed via Fabric.app false
Xcode Path /Applications/Xcode_12.4.app/Contents/Developer/
Xcode Version 12.4
spnkr commented 3 years ago

i'm having the same issue:

  desc "Export xcframework"
  lane :export_xcframework do
    create_xcframework(
      workspace: '../Library.xcworkspace',
      scheme: 'LIFX',
      destinations: ['iOS'],
      xcframework_output_directory: 'Releases/xcframeworks'
    )
  end

with Xcode 12.4, ruby 2.6.2, Mac OS 10.15.7

bielikb commented 3 years ago

Hi @pantomath91 @spnkr Could you please share a skeleton/demo app that showcases your problems?

Thanks! I must've overlook this issue. Sorry for late response

hrabkin commented 1 year ago

Just moved my CI to a new machine and reproduce it again. Not sure but seems like it works occasionally, maybe it somehow related to clearing derived data