'Failed to finalize LSBundleWrapper' on SwiftUI app build for release - ios

I have a new app which I'm building to be cross platform using SwiftUI
When I build for release I get a very odd error in a popup generated by Xcode.
Unable To Install “nomadgo.ProductivityDashboard”
Please try again later.
Failed to finalize LSBundleWrapper mutator instance for
I only get this error one I build for release. I tried restarting my Macbook.
Specs:
Xcode Version 12.5.1 (12E507)
MacBook Air (M1, 2020) BigSur
The app is fresh project using all latest Xcode settings for cross platform SwiftUI.
I get the error when trying to run the app on my MacBook.

I had exactly same issue. In my case deleting the project from Containers folder and cleaning the project in xCode (⌘ + ⇧ + K) helped.

Just in case, if you are still in this issue even after cleaning builds, check the DerivedData path. The DerivedData path should be somewhere in your Macintosh HD.
Xcode 14.2 (14C18), Mac OS 12.5

Related

Failed to launch IBCocoaTouchImageCatalogTool via CoreSimulator spawn on BigSur

I've had the same error over and over for 5 times till now, and it's happening randomly on builds. In previous scenarios one of fallowing actions resolved it for me:
Clean project filed and delete xcode folder in Library/Developer
Reinstallation of xcode and actions from the first point
But my colleagues in project have no problem with this but they are on Catalina not BigSur. Could you please help me find a permanent solution to this problem? I'm using xCode version 11.3.1

Xcode 11.3 - Archive succeeds but does not appear anywhere

Running archive in my project in Xcode 11.3 (and 11.2.1 as well) on a fresh installation of Mac OS Catalina results in "Build Successful" but it does not appear in the organizer. My scheme is correctly configured with "Reveal Archive in Organizer" checked.
After searching I found others with this issue from past versions of Xcode who solved it by restarting Xcode/Cleaning/Removing Derived data - this is not working for me. I have also verified my Installation Path is accurately showing /Applications.
I AM able to archive the project using xcodebuild in the terminal and specifying custom paths for the resulting files - but this is not ideal. Any help or advice would be appreciated.

Xcode 7 or 8 issue with Pods, can't run at all

Getting this error for pods in Xcode when trying to run app:
error: A cryptographic verification failure has occurred.
Tried reinstalling Pods/repo
Reinstalling Xcode(s)
Also doesn't run on simulators:
Also, running Sierra at the moment (yes, I know).
This is a regression in macOS Sierra that multiple developers have reported in the forums and in the lab sessions at WWDC. Xcode 7.3 is not officially supported on Sierra. If you want to use macOS Sierra, please use Xcode 8.0 beta or later.
If you must use Xcode 7.3 on Sierra, you can partially workaround this bug by using Xcode.app to install the app through Build & Run, launch the app suspended from the command line (xcrun simctl launch -w booted <app identifier>) and then attach with the debugger and resume the suspended process.
Note that this issue only impact Xcode 7.3.1 downloaded from the Mac App Store. You will not hit this issue if you use Xcode downloaded from http://developer.apple.com (ie, the "drag & drop installer"). Note that you might hit another issue with the same symptoms when using the drag & drop installer. That is discussed in DTAssetProviderService could not start DTXConnection with Simulator
I got mine working now!! Not really sure what I did, at all, but I just deleted the Xcode 8 .app entirely and then I redownloaded it, opened up my project in it, did a pod install and pod update, and it's running in the simulator just like normal! Not sure what I did at all, but redownloading is worth a try, it is in fact possible to fix.
If you have reinstalled CocoaPods so that it updated from a version that is lower than 1.0.0 to 1.0.0 or above it can't hurt to delete your DerivedData folder of the project that is having problems. I don't know why it fixes a lot of bugs when above scenario is the case, but it does! You can do this by going to: Window -> Projects
Then select your project on the left (It was my "Piece" project for me)
Then click the delete button
Hope this helps you out!
Launch "Keychain Access", go to "Preferences..." and click "Reset My Default Keychain". After that I was finally able to build my projects.

Xcode 7.0 beta 6 crashes when app is run in the simulator with "Xcode quit unexpectedly." error

My app is crashing in Xcode 7.0 beta 6 when I run it in the simulator with following error message:
Xcode quit unexpectedly.
Click Reopen to open the application again. Click Report to see more detailed information and send a report to Apple.
Here is my crash report:
http://pastebin.com/YechkXrm
Things I noticed:
The crash happens 100% of the time so I am unable to run my app in the simulator or execute unit tests.
Same app does NOT crash on a different computer running identical OS X and Xcode versions.
A different app did not crash.
What I tried so far:
Reinstalling Xcode.
Reseting content and settings of the simulator.
Clearing ~/Library/Developer/Xcode/DerivedData and ~/Library/Caches/com.apple.dt.Xcode/ directories.
Deleting and adding the simulator from Window > Devices.
Xcdode > Preferences > Source Control > Uncheck the Enable Source control.
Selecting "Command line tools" version from Preferences > Locations.
Restarting my computer.
I did submit a bug report to Apple.
Xcode Version 7.0 beta 6 (7A192o)
OS X Version 10.10.5 (14F27)
Mystery solved
I found out the source of the problem. I am using Carthage to build frameworks. To solve this problem I needed to run carthage update. I think that last time I did that I did not commit the built framework files from Carthage/Build directory. And maybe when I installed newer Xcode version it caused the problem with the framework files there were built using previous command line tools.

iPhone running iOS 8.3 shows up as ineligible in Xcode 6.2

Current setup:
iPhone 6+ updated to iOS 8.2
iMac running Mavericks (10.9) with Xcode 6.2
Deployment target set to 8.2
When I connect the iPhone, it shows up as ineligible.
Also, it shows this warning:
I've tried:
to reboot both iPhone & iMac -> Not solved
to manually select iPhone from: Product > Destination > Ineligible Devices
Many other answers in this question, but all for problems using Xcode 6.3, not 6.2.
I know I can solve this:
upgrading to Yosemite & installing Xcode 6.3
using an iPhone running 8.2
But is there any possibility that mounting the Xcode 6.3 DMG and copying some libs / symlinking something it will work?
Just copy the folder DeviceSupport/8.3 from Xcode 6.3 to Xcode 6.2.
Details:
Download Xcode 6.2 and 6.3, install as /Applications/Xcode_6.2.app and /Applications/Xcode_6.3.app (or similar names)
In both installations, there's a folder Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
In Xcode 6.2, this folder contains packages for iOS 8.2 and many lower versions, but not for 8.3.
In Xcode 6.3, this folder also contains a package for iOS 8.3. In my case, the folder is called 8.3 (12F69)
Copy the iOS 8.3 package from Xcode 6.3 to Xcode 6.2 (this command is one line, of course):
cp -r '/Applications/Xcode_6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.3 (12F69)' '/Applications/Xcode_6.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport'
Or even better, create a link:
ln -s '/Applications/Xcode_6.3.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/8.3 (12F69)' '/Applications/Xcode_6.2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport'
Now restart Xcode 6.2 and connect your device through USB. Xcode should allow you to test apps on it.
Diego Freniche's solution (copying the whole iPhoneOS.platform folder) was a great help, but when I ran my app from Xcode 6.2, it looked slightly different than it did when I deployed an ipa file on the phone (buttons in wrong positions, status bar display wrong). I guess Xcode got confused and built the app as if it was targeted at a different iOS version.
With this solution (only copy one folder in DeviceSupport), it looks like the app works exactly as it is supposed to. I'll let you know if I encounter problems, but I haven't seen any so far.
A little progress, but this is a WIP.
Looks like in Yosemite Xcode 6.2 works correctly with 8.3 devices. Need to test on Mavericks
Testing with Xcode 6.2 in Yosemite (need to test also in Mavericks, any feedback would be appreciated)
Go to your Xcode 6.2 folder and rename
/Applications/Xcode-6.2 copia.app/Contents/Developer/Platforms/iPhoneOS.platform
into
/Applications/Xcode-6.2 copia.app/Contents/Developer/Platforms/iPhoneOS.platform.old
Mount your Xcode 6.3 DMG, install it
Copy from Xcode 6.3 this folder:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
inside your Xcode 6.2 folder.
you'll probably find an error telling you rootuser does not own the simulator / OS Platform folder. To solve that just open Terminal, then:
$ cd /Applications/Xcode6.2.app/Contents/Developer/Platforms
$ sudo chown -R root iPhoneSimulator.platform/
$ sudo chown -R root iPhoneOS.platform/
now you can run your app inside your iOS 8.3 device from Xcode 6.2 but you have no simulators in the target tdestination menu
UPDATE: I'm getting weird errors while ibtool tries to compile the storyboards:
/Users/dfreniche/Desktop/Test/Test/Base.lproj/Main.storyboard: The operation couldn’t be completed. (com.apple.InterfaceBuilder error 2001.)
So finally give up and update to Yosemite. If there's any new info on this, please share.
Had the same problem with connecting iOS8.3 devices to Xcode 6.2 on Mavericks. Ok on a machine at work running Xcode 6.4 on Yosemite. Software update on the Mavericks machine doesn't offer any higher version. Looking at the specs of Xcode 6.4 (and presumably 6.3 of the original question) says it requires OS X 10.10 (i.e. Yosemite). So, whether or not you can hack around it, the behaviour you/we are seeing on Mavericks is what Apple intends.
I have the same issue and I don't want to just use the lastest version of XCode for the need of maintaining my old projects. I end up with installing two versions XCode(6.2 and 6.3) to solve this problem. Here is what I did.
Download XCode6.2 install package from apple site
Upgrade the existed XCode6.2 to x6.3
Open my project on XCode6.3 (this time the device can be recognized by XCode, and I think XCode6.3 might have done some updates to your project.)
Close my project, re-install XCode6.2, there will be a prompt saying I have a newer version and if I want to keep both. Click Yes. Then I have two versions of XCode.
After all those steps done, I can finally open my project and use my device in XCode6.2. Hopefully it can help someone.
XCODE 6.3 is out.. It solved my problem.. If you have Yosemite, you can download the 6.4 beta version

Resources