Facing issue while running test cases in xcode10 - objective-c

I am facing xctest encountered error while executing test cases in xcode 10.
The error says
Showing All Messages
xctest (5571) encountered an error (Early unexpected exit, the operation never finished bootstrapping - no restart will be attempted. Underlying error: Test session exited(82) without checking in. The executable cannot be loaded for some other reason, such as a problem with a library it depends on or a code signature/entitlements mismatch. Retry after a Clean build.)
The same code works fine in Xcode 9.4.1 or below.
Tried all possible solutions over the internet but the issue still exists. The project is in objective C and its a framework project.
Please help me to fix the issue.
Attached the screenshot of the error

Related

Codeception won't run any tests. Fails with no errors, quits before running any tests

I go to run an acceptance test, but it only outputs
Codeception PHP Testing Framework v2.0.12
Powered by PHPUnit 4.5.1 by Sebastian Bergmann and contributors.
Then it quits with out any error message. No tests run, no error message.
Browser tests were working fine, and only acceptance tests were broken.
I have all ready solved the problem, but I want to create a record for next time I or any one else runs into this problem.
If you codeception is quitting without any errors or fail messages, it means that there is an error in your code somewhere. I found the error in me Acceptance Helper file, where I had a duplicate of a function. Functions can not have the same name in php, so everything fails. But codeception does not output any error messages.
In order to solve this problem, you need to look through your Helper functions to find a syntax error, or it could be in your actual tests.
The reason it fails is codeception hits an error in the php code, and dies, not throwing any errors. Leaving you confused and frustrated. Now you can find this question and get back to doing what you're doing.
YAY!
There is a syntax error somewhere in your testing code, find it and get rid of it, and it will work. I'd bet the error is in the AcceptanceHelper.php or Browser or what ever suit won't run tests.
If you're seeing this behaviour (codeception quits without any error messages) there is likely a fatal PHP error happening somewhere, but it's not necessarily in your own code or in your codeception generated files.
Depending on your PHP configuration, these errors should show up in an error log, even if they're not output to the console.
For example, if you're using MAMP on Mac, the error log is here by default: /Applications/MAMP/logs/php_error.log
Clear the PHP error log, run your (non-working) test, and check the log again. It should give more insight.
In my case, it was a matter of running codeception 4 on Laravel 5.5, and hence missing classes from the symfony/service-contracts package. Installing this package with composer moved past the "invisible" problem (though I ultimately had to downgrade to composer 3, since there doesn't seem to be a compatible set of symfony/Laravel 5.5/composer 4 packages).

Change Target Framework Error (MSVSMON.exe)

I started a new application and changed the target framework to v2.0 for Windows XP compatibility but when I run the debugger (with or without code) I get an error saying MSVSMON.exe appears to not be running. I tried restarting the project and even changing the target framework back to v4.5 but I still get the error. How do I fix this?
I know this is quite old, but in case somebody has the same issue I thought I'll answer it. I changed the platform target to 32bit and debugging worked. Setting it to 64 bit or Any CPU caused the error you are describing. Not really the perfect solution but at least I can debug now.

Unable to compile Ultralite library for Iphone for my Xcode 4.3.3

I am new to iphone development . In my application I am trying to provide Ultralite Sync
mechanism. I am referring the following link:
http://dcx.sybase.com/index.html#1201/en/ulc/compile-iphone-library.html.
But when I try to Compile the library for the iPhone simulator , I get the error. That is,
when I execute the ./build.sh command. I get the following error
make: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2: No such file or directory
I assume, I am getting error because Developer folder is missing as I am using XCode
version 4.3.3. I am really banging my head to get the solution. Can any one help me out,
please ?
I just encountered this error as well and got past it by doing the following:
1)Launch XCode
2)Click XCode...Preferences menu
3)Click on Locations
4)Select the 'Command Line tools' drop down and select the version number.
Mine was unseleced. After making this selection and rerunning the command line tools I was able to get past this error. (Although now I have other errors in the script)

Apple LLVM compiler 3.0 error when using sharekit in ios5

I added Sharekit in ios sdk 5.0. I even turned down the automatic reference counting for every single file present using "fno-objc-arc" I'm getting "LLVM compiler error". I have no idea what exactly the problem is. Could you guys help me out? Below is the source code link
http://www.skytel.mobi/stepheniphone/iphone/newlywed.zip
ERRORS:
1)Apple LLVM compiler 3.0 Error
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1
2)UNCategorized
Build task failed without generating error messages.
Did you try setting the debugger to GDB (in Product/Edit Scheme). There seems to be some issues with LLDB and breakpoints, especially if you are breaking on all exceptions.

bootstrap server. Error in iPhone SDK

Can anyone help for the following ERROR:
Couldn't register com.india.XXX with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.
here m using xcode 4.1 and i have same project folders in my local desk.
When ever i open multiple projects with the same name its showing the above error.
Thanks in advance.
Some of the fixes that the links Saif contain may work for some, but not for me.
I have a very simple solution without restarting that will usually get you through the day.
When you get this error, before you do anything else, build for the other device (if you are running a universal application).
When you build for the other device, it kind of "overwrites" the process that creates this error. Once the other device is up and running, immediately build for the device that created the error. This will work most if not all the time, and will save you time digging through the multitude of fixes you will find in the other links.
I tried almost all of the fixes found there and none of them worked in my case. This works, but you should check your appDelegate for any bugs in your willEnter/didEnter (and other related methods).