Can run successfully but can't archive? - ios

I'm trying to archive one of my projects but I keep getting an error even though I can run the simulator perfectly fine. This is the error that I keep receiving
This is interesting because I can run my app with no problem but when it comes to archiving, I seem to run into a seg fault. Any help would be appreciated :-) Thank you!

Solved the problem by updating Xcode from 7.2 -> 7.3.1

Related

Simulator not found after Xcode update

I have just updated the Xcode from App Store from 10.2 to 10.3 and suddenly all the simulators are gone. Now when I open a project with a storyboard, it throws me an error as below.
Failed to find or create execution context for description ' System content for IBCocoaTouchFramework-ElevenAndLater scaleFactor=2x. These intermediate objects were non-nil.
Any one faced this issue before? Also it doesn't let me edit anything in my simulator.
I tried to restart Xcode, but it did not help.
The only way to fix the problem was to reboot my MacBook - it fixed the problem with simulator
Try to increase deployment target of your project. It worked for me.

Xcode 10 it constantly is crashing with no errors

I installed Xcode 10 but keeps on crashing sometimes it crash the moment is loading a project or playground but is not showing any error it all. Any of you are experience this issue and if you have had how did you fixed?
I'll really appreciate your help.
This issue is getting because of Mac OS update
if you are using GitLab, Please reclone project repository.
After reclone application will working fine.
Clear all derived data and empty trash before opening project.

Invalid or missing Program/ProgramArguments? No solution found

I'm having a very hard time trying to solve this annoying issue.
I created a COCOA static library in XCode that worked flawlessly until some days ago. Now, when i try to TEST it, i receive the following error:
"Invalid or missing Program/ProgramArguments".
I already tried to fix this problem performing the operations pointed out here
Invalid or missing Program/ProgramArguments
and here
When I clean Xcode DerivedData I can't run my app in iOS Simulator
without any success (XCode 7.2).
Can someone help please?
solution: I updated from XCode 7.2 to XCode 7.3 and suddenly everything started to work fine again.

Xcode 6 crash when hitting run, persistent error in code

Xcode 6 won't build when I run simulator on mac or on my own ipad...
The last run in failed to build because of an error, which I fixed. Yet the error message, telling me that addObject is not a member, which clearly nonsensical, still remains in the code. I rewrote the code around the error and nothing is making it disappear, not restarting Xcode or my computer has helped either. I assume this has something to do with the crash.
Any idea what I can do?
For the error in the code, hit command+shift+k to clean your project. This might fix your problem.
If it still occurs, even after rebooting and restarting Xcode I'd recommend to reinstall Xcode completely: deinstall it first (using CleanMyMac for instance) and then download and install it.
Hope this helps :)

Installation Failed: Invalid Argument -iOS Extension

https://imgur.com/vFn0S7g
I am about to build watch app target from existing project. I encountered a strange error upon finishing build that unables me to run the watch app properly. Here is the attached screenshot.
Environment
OSX 10.10
XCode 6.2 Beta
Simulator iPhone 6 iOS 8.2
When I try creating new watch app project and try the Lister demo app they work just fine. So I am suspecting there is something wrong with my existing project but not sure what since the error message is not really explanatory. I appreciate any leads or helps given, thank you for your time.
EDIT: After few investigation turns out extensions do not work as well.
I had the same issue. This sequence helped for me:
Xcode doesn't like it when you have a referenced directory called
'Resources' within your resource bundle (see timrex)
1) Remove 'Resources' directory from your project's tree;
2) Reset content and settings in iPhone simulator;
3) Press Shift+Cmd+Alt+K and click 'Clean' or Shift+Cmd+K in xCode window;
Check if the Bundle Identifier isn't empty in the Info.plist
After 2 days of research I have found the answer which I believe is an xcode bug.
Basically this is caused by having different build name on your XCode build settings. Making them uniform should solve the problem. As shown here https://devforums.apple.com/message/1047770#1047770
I hope this helps anyone stumbled upon this question.
I got my error fixed by setting the project's "Product Bundle Identifier".
It was empty since my project was being generated by Gyp and I hadn't set that particular setting on the project.
I ran into the same issue and got it resolved by cleaning the phone's memory since it was too low to install the app.
This issue can be resolved simply by emptying the trash.
I fixed this by first building for an actual device - once I'd done that at least once, the simulator ran fine.
I got it working after I tried everything mentioned here, then deleting the app from the device and restarting XCode. Those two steps were mentioned here:
https://stackoverflow.com/a/28232381/1586277
I have no idea what combination of steps fixed it though.
I got this issue while running on simulator. I rebooted the system and the issue gone.
I just had the same issue. My fix was to delete the temporary project files in the derived data folder:
rm -R /Users/username/Library/Developer/Xcode/DerivedData/projectname
I had the same issue. This helped
https://forums.developer.apple.com/thread/7338
Check your connected device has enough storage space.
I had this issue when I tried to run in my iPhone. I cleared the storage by deleting couple of apps and tried to install again and then it works.
Check your device's storage.
I had this issue and deleting some apps was the only solution for me...
I could fix this problem by switching to a different simulator (iPhone6 instead of iPhone6s) in my case).
Switch OFF your Phone and ON.
Now install your app ,its works for me.
If you run in device then remove previous app . It will work .

Resources