I have a project that builds and works fine on the simulator and device, but does not work when archiving.
The project is very old, but I created a separate component that I added in the workspace.
The main project is written in Objective-C, the new project is written in Swift 4. The project also uses CocoaPods, and also includes another subproject written in Swift 3.2.
There are various errors that all boil down to the same thing; a subproject does not produce any output when compiling it. OR it just doesn't compile. I see no errors in the code itself, just trying to reference it:
//1 error: /Users/<user>/Library/Developer/Xcode/DerivedData/<id>/Build/Intermediates.noindex/ArchiveIntermediates/<app name>/BuildProductsPath/Release-iphoneos/Framework.framework: No such file or directory` //2 Signing Identity: "iPhone Developer: <redacted>" /Users/<user>/Library/Developer/Xcode/DerivedData/<id>/Build/Intermediates.noindex/ ArchiveIntermediates/<app name>/InstallationBuildProductsLocation/Applications/<app name>/Frameworks/<framework>.framework: No such file or directory Command /usr/bin/codesign failed with exit code 1 //3 @import ModuleName; Module 'ModuleName' not found
Here is what I tried:
- Clear derived data
- Mac reboot
- Add
$(SRCROOT) to the main target> Build Options> Database Search Paths> Release - Confirmed project is present in the built-in binaries.
- The confirmed project is present in related structures and libraries.
- Removing and re-adding a project to embedded binaries and frameworks and libraries
- Delete import declaration
- I open a workspace, not a project
Skip install installed in YES in Subproject build settings- Comparison of assembly settings from a working subproject with unsuccessful (they are the same)
- Running
pod update - Changing
Always Embed Standard Swift Libraries doesn't matter anyway
Other notes:
- There is a .framework file in
/Users/<user>/Library/Developer/Xcode/DerivedData/<id>/Build/ Intermediates.noindex/ArchiveIntermediates/<app name>/ InstallationBuildProductsLocation/Applications/<app name>.app/Frameworks/ . for another subproject and all containers, but not for this - There is
podfile use_frameworks!
Update:
After starting the archive today, I see only an error:
Module 'ModuleName' not found
Other errors have disappeared
source share