# Xcodebuild with SwiftPM signs iOS Simulator framework but not iOS framework

**URL:** <https://forums.swift.org/t/xcodebuild-with-swiftpm-signs-ios-simulator-framework-but-not-ios-framework/77845>\
**Category:** Package Manager\
**Tags:** packagemanager\
**Created:** [February 13, 2025, 10:34am UTC](https://forums.swift.org/t/xcodebuild-with-swiftpm-signs-ios-simulator-framework-but-not-ios-framework/77845 "2025-02-13T10:34:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cipolleschi](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/cipolleschi/32/24858_2.png) [@cipolleschi](https://forums.swift.org/u/cipolleschi)\
**Post date:** [February 13, 2025, 10:34am UTC](https://forums.swift.org/t/xcodebuild-with-swiftpm-signs-ios-simulator-framework-but-not-ios-framework/77845/1 "2025-02-13T10:34:55Z")

</div>

Hi there, this is Riccardo, SWE @ Meta and core maintainer of React Native.

This half we are moving away from Cocoapods and we are exploring Swift PM as alternative to build React Native from source and to build a `ReactNative.xcframework` to distribute as a binary.

While working on my prototype, I noticed that when I run

```swift
xcodebuild -scheme "<MyScheme>" -destination "generic/platform=iOS"

```

The generated framework does not have the `_CodeSign` folder.

Instead, when I run

```swift
xcodebuild -scheme "<MyScheme>" -destination "generic/platform=iOS Simulator"

```

The generated framework has the `_CodeSign` folder properly populated.

I also created [this reproducer](https://github.com/cipolleschi/XcodebuilCodesigningReproducer) to help you investigate the issue. You can just clone the repo and run the `build.sh` script.

This is the result:

 ![Screenshot 2025-02-13 at 10.18.35](https://global.discourse-cdn.com/swift/original/3X/8/4/847a073be907c25118a5c5b65d8f6e8b4b186142.png)

How's that possible?  
Am I missing something or is there in the plans to fix this?

Thanks for your help.
