linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Error compile to archive proyect


From: Gonzalo Larralde
Subject: Re: [Linphone-developers] Error compile to archive proyect
Date: Tue, 24 Jun 2014 15:53:32 -0300

Are you including arm64 into the architectures you want to build the project for? 

When archiving, the compiler makes a binary for each architecture selected, and then when it tries to compile for 64 bits, taking into account that NSInteger is long instead of int, and NSUInteger unsigned long instead of unsigned int, it fails because you'll lose precision if the cast is made implicitly. 

Just change the return type to NSUInteger to match the return type of count, or cast it to int.

Cheers.

On Mon, Jun 23, 2014 at 8:46 PM, <address@hidden> wrote:
Hi list, i need your support.

Wen try to compile linphone to upload to appstore return this error

error: implicit conversion loses integer precision: 'NSUInteger' (aka 'unsigned long') to 'int' in the XMLRPCCConnectionManager.m

#pragma mark -

- (NSArray *)activeConnectionIdentifiers {
    return [myConnections allKeys];
}

- (int)numberOfActiveConnections {
    return [myConnections count]; <---- in this line
}

#pragma mark -

Some body know how to resolve, thanks...



_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers


reply via email to

[Prev in Thread] Current Thread [Next in Thread]