release

Maven release plugin with git, error if commits are pushed during process

不羁的心 提交于 2019-12-12 10:37:37
问题 We use git repository and maven release plugin. In the first build step, we pull all the changes to local repository, and in the next one we run mvn release:prepare release:perform . release:prepare updates workspace, updates version in pom files, creates tag in repository, runs all the tests, builds jars etc. If it's fine, it then pushes local repository changes to remote one (updated poms and tag created). The problem is that when somebody pushes some changes meanwhile, push from maven

“Debug Assertion Failed” error when changing from release mode to debug mode

假装没事ソ 提交于 2019-12-12 09:28:33
问题 I ran my project in release mode and I had no problem. and than I changed the mode to debug mode and I have an error "debug assertion failed". That's the code that caused it: QXmlStreamReader* xmlReader = new QXmlStreamReader(xmlFile); xmlReader->readNextStartElement(); QXmlStreamAttributes attributes; attributes = xmlReader->attributes(); cout << (attributes.value("name").toString().toStdString()); After this cout line I had the error massage. What can be the difference between the modes

How to release static Objective-C variables

耗尽温柔 提交于 2019-12-12 07:13:02
问题 The StackOverflow question "using static keyword in objective-c when defining a cached variable" references code from Example 4 of Xcode's TableViewSuite that defines a static NSDateFormatter and calls alloc but never calls release . Shouldn't static variables be released? If yes, where in the code should they be released? If no, why not? 回答1: Shouldn't static variables be released? If yes, where in the code should they be released? If no, why not? It depends. If the variable is initialized

iOS: optional code fragments for debug builds

微笑、不失礼 提交于 2019-12-12 07:10:12
问题 for my App I'd like to have a debug view that I want to have only in debug-builds and not in release builds. I don't want to change my code though. Thats why i am wondering if I can check some compiler flag if this is a release build and exclude some code that i only want to have for debug builds. 回答1: In your projects build settings, look for the preprocessor defines section, in there you can define a variable in your debug build only, such as DEBUG=1 , and then use this in your code: #if

How to debug a crashing release build? [duplicate]

走远了吗. 提交于 2019-12-12 06:49:57
问题 This question already has an answer here : Why do release builds sometimes crash while debug builds do not? (1 answer) Closed 6 years ago . My debug builds don't crash, but the release builds do. I've modified the Run scheme to use produce TestFlight release build and install it on my device. This works. But the app keeps crashing during usage. The Organizer window gives me no device logs. There are no crash reports. Nothing at all. How do the Pros do it? 回答1: Some possibilities: Get a

Generated files by caliburn.micro in Release directory

谁说我不能喝 提交于 2019-12-12 06:34:21
问题 Caliburn.Micro generates a lot of files in my Release directory. Do I need to include them all while distributing package with my application? Is it possible to disable copying those files? Caliburn.Micro.Platform.xml Caliburn.Micro.xml directories like de, en, es etc. with a single file: System.Windows.Interactivity.resources.dll These *.xml files look like meta-data for Caliburn. My application will only support English, so maybe I could remove other directories, but I'm not sure if

Release /Debug hell, with V-studio C++ project

二次信任 提交于 2019-12-12 06:23:22
问题 I'm so tired of this happening. I'm working in Visual studio using C++, and go a little to far in developemnt before attempting a release build/run cycle, only to find my release build crashes. It leaves me no way to fix the problem beyond to hack out big chunks of code looking for all potential violators. Anyway, If I go into my "release" project properties and enable the debug database for "Edit and Continue", and DON'T even enable Debugging in the linker, the Release version runs perfectly

Setter method really do in Obj-C?

我的未来我决定 提交于 2019-12-12 04:49:57
问题 Here is implement of a setter method: - (void)setCount:(NSNumber *)newCount { [newCount retain]; [_count release]; // Make the new assignment. _count = newCount; } If retainCount of _count is <=0, how it can release ? 回答1: The only valid object that can ever have a retain count of 0 is nil . And sending any message to nil just returns 0 without doing anything else, so that case is covered. If you mean "how can this work with a deallocated object" — well, it can't. And a deallocated object's

Release builds hang/crash, regardless of code

二次信任 提交于 2019-12-12 03:34:47
问题 For some reason I just started having an issue with my release builds. I'm able to run any of my projects without issue from the debug builds, I can also run my release builds as long as I attach a debugger, but when I try to run the release builds on their own they either hang infinitely (The UI crashes, but I'm unable to stop the process with task manager), or they load up EXTREMELY slowly (I've only ever had them eventually load twice, and that was on a separate machine from my main PC). I

What is the lifetime of the array underlying a std::initializer_list? [duplicate]

扶醉桌前 提交于 2019-12-12 03:09:43
问题 This question already has an answer here : Initializer list of variables (1 answer) Closed 4 years ago . Following this answer https://stackoverflow.com/a/29074955/1098041 I have a curious behavior. In Debug I get the expected output, however in release (I'm using mingw on windows) I get garbage in the test fonction. #include <iostream> #include <initializer_list> template <class T> struct array { T *ptr; size_t len; array() { clear(); } array( T *p, size_t l ) { assign(p,l); } inline void