xcframeworks icon indicating copy to clipboard operation
xcframeworks copied to clipboard

PRODUCT_NAME was misdefined

Open pantomath91 opened this issue 4 years ago • 3 comments

Getting PRODUCT_NAME was misdefined: Sample. Please, provide :product_name 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/[email protected]/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

pantomath91 avatar Feb 16 '21 17:02 pantomath91

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

spnkr avatar Apr 21 '21 23:04 spnkr

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

bielikb avatar Apr 22 '21 19:04 bielikb

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

hrabkin avatar Jul 03 '23 19:07 hrabkin