Hero: Version 1.6.2 doesn't work with SPM

What did you do?

Updating from 1.6.1 to 1.6.2 using SPM doesn’t work.

What happened instead?

/Users/redacted/Library/Developer/Xcode/DerivedData/app_redacted-asehfmfelcemwgdmpgoxlifocxtt/Build/Products/Debug-iphoneos/Hero error build: /Users/redacted/Library/Developer/Xcode/DerivedData/app_redacted-asehfmfelcemwgdmpgoxlifocxtt/Build/Products/Debug-iphoneos/Hero: No such file or directory

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 5
  • Comments: 16

Most upvoted comments

I think this issue might be related to Xcode 14, event though some say it works for them. I noticed one difference (for 1.6.1 as well as 1.6.2). When I add Hero to the target in ‘Frameworks, Libraries, and Embedded Content’ on Xcode 13.4 it behaves like any other package. It is just there. If I add Hero in the same way to Xcode 14.0.1 I have to choose between ‘Embed & Sign’, ‘Embed without signing’, or ‘Do Not Embed’:

Screenshot 2022-10-25 at 02 20 29

Screen Shot 2022-10-25 at 02 22 03

I don’t know if that is an issue but our build pipeline either failed or when it was successful the app crashed immediately after I switched between Xcode 14 (locale) and Xcode 13 (build server).

I’m going to check how it behaves when I’m using Xcode 14 for the build server as well.

Edit: It crashes after building it with Xcode 14 as well. I’m still a bit concerned about the selection I needed to make there but try to investigate further.

Edit: Xcode won’t let me install the app when selecting ‘Embed without Signing’. The build works just the install fails. Locally ‘Embed & Sign’ works. Even though I’m not sure if that should be the way to go.

Edit: So, I got it working. ‘Embed & Sign’ is the way to go and maybe always was. We did that before it just wasn’t present in Xcode. I additionally had to trust the certificate in the settings (iOS didn’t warn me about that). After building the app with Xcode 14 on the build server with ‘Embed & Sign’, and trusting the certificate it was working as expected again.

I solved this issue by removing Hero from the project. Then re-added it and I have no issues now.