A solution: Rebuild the app extension target from scratch in Xcode.
Someone posted on the stackoverflow.com site that they had solved this by deleting the widget and recreating it with the current version of Xcode. After carefully documenting all the settings I had to make my Widget extension work in an earlier release, I deleted the target and recreated it in Xcode. Took way too long to configure all the details, but it works again as a widget and is accepted by AppStoreConnect upon upload with Transporter.
What is a better solution?
Post
Replies
Boosts
Views
Activity
App receipt generation is broken. I'm getting this message on macOS Monterey 12.3.1 with Xcode 13.3.1. What can be done?
“My App” is damaged and can’t be opened. Delete “My App” and download it again from the App Store.
Deleting the ModuleCache.noindex at /Users/myusername/Library/Developer/Xcode/DerivedData/ModuleCache.noindex seems to fix this problem.
I changed the class hierarchy in Xcode by reassigning the super class of several classes to a different superclass.
I also just now deleted ModuleCache.noindex at
/Users/myusername/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
Maybe that solved it? The symbols now appear correctly in Xcode's Symbol navigator.
Same basic problem here: App launch displays "MyApp" is damaged and can't be opened... and also Error Domain=com.apple.commerce.client Code=500 in the Console on Big Sur.
On the other hand, when launching the same test build on older macOS systems such as High Sierra and El Capitan, the app downloads a receipt with the proper version number and the app verifies the receipt successfully.
App Store Connect Sales and Trends page does not load on macOS Big Sur 11.5.1 with Safari 14.1.2. Only top and bottom App Store Connect bars partially appear. Same problem for a couple weeks now. Safari source code debugger Console view has this: "SyntaxError: Unexpected end of script (anonymous function) main.4ebf7eb1.js:2"
For this problem:
Xcode fails to launch with following alert:
"Loading a plug-in failed. -- The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled."
I found the key to a solution here:
https://developer.apple.com/forums/thread/100026
In the Xcode app directory:
/Applications/Xcode.app/Contents/Resources/Packages
there are four packages:
CoreTypes.pkg
MobileDevice.pkg
MobileDeviceDevelopment.pkg
XcodeSystemResources.pkg
I had to open and install all of these packages to fix the Xcode launch failure. Then Xcode opens normally.
How my Xcode was damaged: After a macOS update, I ran Xcode and it needed to update it's components. That failed because of low disk space (my bad) and then I was getting the "Loading a plug-in failed." alert upon failing Xcode launches.
Perhaps Xcode code resolve this issue automatically in the future?
Problem:
Xcode fails to launch with following alert:
"Loading a plug-in failed. -- The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled."
I found the key to a solution here:
https://developer.apple.com/forums/thread/100026
In the Xcode app directory:
/Applications/Xcode.app/Contents/Resources/Packages
there are four packages:
CoreTypes.pkg
MobileDevice.pkg
MobileDeviceDevelopment.pkg
XcodeSystemResources.pkg
I had to open and install all of these packages to fix the Xcode launch failure. Then Xcode opens normally.
How my Xcode was damaged: After a macOS update, I ran Xcode and it needed to update it's components. That failed because of low disk space (my bad) and then I was getting the "Loading a plug-in failed." alert upon failing Xcode launches.
Perhaps Xcode code resolve this issue automatically in the future?
Problem:
Xcode fails to launch with following alert:
"Loading a plug-in failed. -- The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled."
I found the key to a solution here:
https://developer.apple.com/forums/thread/100026
In the Xcode app directory:
/Applications/Xcode.app/Contents/Resources/Packages
there are four packages:
CoreTypes.pkg
MobileDevice.pkg
MobileDeviceDevelopment.pkg
XcodeSystemResources.pkg
I had to open and install all of these packages to fix the Xcode launch failure. Then Xcode opens normally.
How my Xcode was damaged: After a macOS update, I ran Xcode and it needed to update it's components. That failed because of low disk space (my bad) and then I was getting the "Loading a plug-in failed." alert upon failing Xcode launches.
Perhaps Xcode code resolve this issue automatically in the future?
Dear Apple Developer department: Xcode downloads from the Downloads web page are useful for handling installs for multiple machines that are not online. It would be much appreciated if Xcode 12.1 and future releases are available from the Downloads web page as soon as released.
A useful bit of info from Apple Developer Support could inform developers if multiplatform SwiftUI projects (iOS and macOS, etc) can be created in any other final version after Xcode 12.0.1, or do we have to wait for the final Xcode 12.2 release? Juggling downloads only to discover bad glitches or omissions is eating a lot of time better spent on other projects. Thanks for any info you can share.
Xcode 12.0.1 from the App Store fixed this problem; Developer Documentation window now works. Thank you!
Xcode 12.0.1 from the App Store fixed this problem; Developer Documentation window now works. Thank you!
After downloading the Xcode_12.xip file from Apple downloads, I am getting this Archive Utility error: "The operation couldn't be completed. Block-compressed payload operation failed."
What can I do to get the xip file to uncompress properly? The man page for xip in Terminal doesn't really help.
I do a lot of work when Internet is not readily available. Offline Xcode local documentation and a lot of other info is crucial. Assuming a lot of Internet connectivity is perhaps risky, a lot happens without it.
Had the same Xcode 12 Documentation crash. Now upon downloading the Xcode_12.xip file from Apple downloads, and double-clicking it to expand it on macOS Catalina, I get the following Archive Utility error after stalling for a while about half-way through the decompression: "The operation couldn't be completed. Block-compressed payload operation failed."
What can I do about that? The man page for xip in Terminal doesn't help.