I got mine working by adding the following lines to the xxx.podspec:
s.preserve_paths = 'xxxxxx.xcframework/**/*'
s.xcconfig = { 'OTHER_LDFLAGS' => '-framework xxxxxx' }
s.vendored_frameworks = 'xxxxxx.xcframework'
Notice the /**/* at the end of s.preserve_paths
Here is the full xxx.podspec file:
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
# Run `pod lib lint xxx.podspec` to validate before publishing.
#
Pod::Spec.new do |s|
  s.name             = 'xxx'
  s.version          = '1.0.0'
  s.summary          = 'xxx'
  s.description      = <<-DESC
xxx is a flutter plugin
                       DESC
  s.homepage         = 'https://example.com'
  s.license          = { :file => '../LICENSE', :type => 'BSD' }
  s.author           = { 'xxx' => 'email@example.com' }
  s.source           = { :path => '.' }
  s.source_files = 'Classes/**/*'
  s.dependency 'Flutter'
  s.platform = :ios, '10.0'
  # Flutter.framework does not contain a i386 slice.
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
  s.swift_version = '5.0'
  s.preserve_paths = 'xxxxxx.xcframework/**/*'
  s.xcconfig = { 'OTHER_LDFLAGS' => '-framework xxxxxx' }
  s.vendored_frameworks = 'xxxxxx.xcframework'
end
Make sure to copy the xxxxxx.xcframework directory to .../xxx/ios/xxxxxx.xcframework (where your plugin xxx.podspec is located)
Add xxxxxx.xcframework to Pods scheme to be able to import it
The Frameworks directory should be below the Pods scheme when running the flutter command to create a plugin ie.
flutter create --org com.xxx --template=plugin --platforms=android,ios -a java -i swift xxx
Source: Developing packages & plugins
(If not, add it)

- Navigate to Podsscheme and right-click onFrameworks
- Click Add Files to "Pods"...

- Navigate to the root of the iosdirectory where thexxxxxx.xcframeworkis located
- Uncheck Copy items if needed
- Select Create folder references
- Check Pods-Runner
- Check your plugin ie. xxx
- Click Add
Embed xxxxxx.xcframework into your project
(this should allow you to run/publish to real devices)

- Click on the Podsscheme
- In TARGETSselectPods-Runner
- Click on the Generaltab
- Ensure the xxxxx.xcframeworkis present underneathFrameworks and Libraries(if not, add it by clicking on the +)
- Change EmbedtoEmbed & Sign

- Click on your plugin ie. xxx
- Ensure the xxxxx.xcframeworkis present underneathFrameworks and Libraries
- Change EmbedtoEmbed & Sign

- Again, for both targets below Podsscheme, the next steps should already be fine, but just check it
- Click Build Phases
- Click Link Binary With Libraries
- Ensure xxxxx.xcframeworkis present, if not add it by clicking the + and that theStatusis set toRequired
Now you should be able to import the framework and reference it in your code and should also publish perfectly fine.
Hope this helps, and good luck. I hope this doesn't change again soon
fingers crossed