asked    Jay     2018-07-03       ios       171 view        1 Answer

[SOLVED] VSTS Build Generation not working

To generate builds to testers we use VSTS in our project. When we checkout and run the branch in our mac with xcode, it works fine. But when i try to release a build through VSTS it throws error as below and the build fails.

ld: could not reparse object file in bitcode bundle: 'Invalid bitcode version (Producer: '902.0.39.2_0' Reader: '900.0.39.2_0')', using libLTO version 'LLVM version 9.0.0, (clang-900.0.39.2)' for architecture arm64[0m

I understand that the issue might be because of the fact that there are two different versions of the compiler hanging around. I am using Xcode 9.2 and the server which builds the source code to upload also has Xcode 9.2. One more thing is, in past i have made a commit with beta Xcode version 9.4 to the branch. Can that create an issue or is it something else that i am missing here.

Also i hear from some stack-overflow and git suggestions that updating Xcode will fix the issue. I am fine with that but want to have that option as last because there are some servers and builds queued in the server like android and WebApp build which we have automated through VSTS which will be stopped momentarily.

Any help or pointers are much appreciated.

  1 Answer  

        answered    Aubrey     2018-07-03      

Found a solution for the problem that i was facing. As the issue reads, the VSTS server was having Xcode 9.2 which has 900.0.39.2_0 and hence updating the xcode version in the vsts server fixed the issue. The thing we need to take care is when we update the xcode version in local machine its better to update the xcode version in VSTS server to avoid such issues in future.





Your Answer





 2018-07-03         Augus

iOS get UTC timestamp

I would like to get UTC timestamp. I cant do it like this [[NSDate date] timeIntervalSince1970]; becouse it returns timestamp in local timezone. How can I get timestamp in UTC in iOS?EditSolved I can use [[NSDate date] timeIntervalSince1970]; :) See answer by Pawel here: Get current date in millisecondsHe refers to using CFAbsoluteTimeGetCurrent();which is documented here.Since it is the system time, just correct for time interval offset to GMT.Nevertheless using your code works as well if you correct for the local timezone.You get the timezone offset by calling[[NSTimeZ...
 ios                     2 answers                     57 view
 2018-07-03         Harold

Test if something is not undefined in JavaScript

I'm checking if(response[0].title !== undefined), but I get the error: Uncaught TypeError: Cannot read property 'title' of undefined. response[0] is not defined, check if it is defined and then check for its property title.if(typeof response[0] !== 'undefined' && typeof response[0].title !== 'undefined'){ //Do something} [XXX]I had trouble with all of the other code examples above. In Chrome, this was the condition that worked for me:typeof possiblyUndefinedVariable !== "undefined"I will have to test that in other browsers and see how things go I suppose. ...
 javascript                     10 answers                     57 view
 2018-07-03         Edwiin

React - uncaught TypeError: Cannot read property 'setState' of undefined

I am getting the following error Uncaught TypeError: Cannot read property 'setState' of undefinedeven after binding delta in the constructor.class Counter extends React.Component { constructor(props) { super(props); this.state = { count : 1 }; this.delta.bind(this); } delta() { this.setState({ count : this.state.count++ }); } render() { return ( <div> <h1>{this.state.count}</h1> <button onClick={this.delta}>+</button> ...
 javascript                     10 answers                     58 view