Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 months ago.
Improve this question
I have tried quit and re-open my xCode, also restart my mac several time but still facing this issue.
Unable to run my code because of this:
It's probably because of Rosetta.
Go to Application -> Xcode -> Get Info -> uncheck Rosetta.
And restart your mac.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
I have an iOS project that depends on several external dependencies (swift frameworks, objective C projects, and vanilla C). All of a sudden (with no code changes that I can see), the builds have begun failing, flagging errors:
I am on Xcode 11.3.1 with Swift 5.
This error persists even after reverting to an earlier revision of the project that was known to compile, and when attempting to build on a new machine with a completely fresh clone of the project.
I am at a complete loss at this point, any help would be greatly appreciated.
EDIT: I've noticed for some reason my compiler version was set to Swift 4.2 in my Build Settings. Now the project builds....sort of. When I try to archive the project I still have the same problem, but a normal build with Product->Build works.
Unfortunately I am unable to reproduce this error in a small project as I have no idea what change caused it to begin happening.
The solution for this problem was to disable optimizations in the build settings (from "optimize for speed" to "no optimization").
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 years ago.
Improve this question
After upgrading to XCode 10, it fails to run my tests on the device.
After finish building, it immediately shows a popup "Test Failed" without showing any errors on the console.
"Run" works on device. Both XCTest and XCUITest runs on simulator.
The error is reproducible on new project running the default UITest on the device.
Restarting the phone made it work.
Check Targets [Build Settings] Search IPHONEOS_DEPLOYMENT_TARGET
Remove IPHONEOS_DEPLOYMENT_TARGET setting
Before:
After:
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
XCode has recently stopped showing all build errors and I'm at a loss for how to correct it. Whether it be something like forgetting to put in an initial view controller, misspelling/not declaring a variable name, or pretty much anything else that would cause the project not to build will no longer show up. I've built the project on other Macbooks and it showed me the errors so I was able to correct it, but I can't get it to show on mine.
The issue might occur because of Xcode.
(1) Quit and relaunch Xcode.
(2) Clean (⌘+shift+K) and build (⌘+shift+B) your project.
If that not case, check out he answer here by Kris i.e.
Click the last icon in the top bar of the left most panel in your
Xcode window to reveal the secret Archive build errors.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I started work on a project written in ObjectiveC++ (.mm file extensions) with backbase on Xcode 7.3. During work I found that break point is not working in the app. I have reset the settings but still no success. I have also gone through below but still running in same issue
Link1 Link2 Link3
Can any help me in resolving this issue? Any idea or suggestion would be great.
Breakpoints are working with Obj-C++ code for me. Just check that you are running program with "Debug" command and signing app with developer (not distribution) certificate and provisioning profile (not for App Store)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
My xcode asked me to replace something, not sure what, it had to do with the test folder of my project so i just accepted it since xcode recommended it. Now every time i do something in interface builder i get an error. I spent probably 40 hours on the project in interface builder but now everything i do gives me an error... What should i do?
I searched for way to load an old saved file of the project but i found that this is not possible so right now i'm stuck with a project that gives me errors every time i add something or change something.
EDIT: I'm guessing i'm in test mode or something since it gives me really dumb errors that are obvious but i don't know how to come back to the normal mode.
If XCode asked you to change something automatically, it probably had created a snapshot of your project.
You can revert from the File Menu > Restore Snapshot.