Hi there,
After installing b4i 2.0 I could never compile again any programs that contains OBJC tags.
Within my code I have the following OBJC Sub
But I keep getting this error when I compile:
import of module 'CoreTelephony' appears within 'b4i_main'
Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/XXXXXXX/Payload
OTHER_CODE_SIGN_FLAGS = --keychain XXXXXXX
PRODUCT_NAME = LlaveMovil
PROVISIONING_PROFILE = XXXX...
This error was not happening before installing b4i 2.0. I have tried to compile with both, 1.5 and 2.0
Any thoughts on what am I doing wrong?
Thanks
FBP
After installing b4i 2.0 I could never compile again any programs that contains OBJC tags.
Within my code I have the following OBJC Sub
B4X:
#If OBJC
@import CoreTelephony;
- (NSString *) SIM
{
NSString *nameComplete;
CTTelephonyNetworkInfo* info = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier* carrier = info.subscriberCellularProvider;
NSString *mobileCountryCode = carrier.mobileCountryCode;
NSString *carrierName = carrier.carrierName;
NSString *isoCountryCode = carrier.isoCountryCode;
NSString *mobileNetworkCode = carrier.mobileNetworkCode;
nameComplete = [NSString stringWithFormat: @"%@;%@;%@;%@", mobileCountryCode, carrierName ,isoCountryCode, mobileNetworkCode];
return nameComplete;
}
#end if
But I keep getting this error when I compile:
import of module 'CoreTelephony' appears within 'b4i_main'
Out: Build settings from command line:
ARCHS = armv7
CODE_SIGN_IDENTITY = iPhone
CONFIGURATION_BUILD_DIR = /Users/administrator/Documents/UploadedProjects/XXXXXXX/Payload
OTHER_CODE_SIGN_FLAGS = --keychain XXXXXXX
PRODUCT_NAME = LlaveMovil
PROVISIONING_PROFILE = XXXX...
This error was not happening before installing b4i 2.0. I have tried to compile with both, 1.5 and 2.0
Any thoughts on what am I doing wrong?
Thanks
FBP