Я пытаюсь создать мое приложение в ионном IOS, однако я получаю сообщение об ошибке, когда я пытаюсь создать ионную iOS. Вот код ошибкиiOS Ionic build failed
BUILD FAILED
Следующая строить команды не удалось:
CompileC build/varfinz.build/Debug-iphonesimulator/varfinz.build/Objects-normal/i386/CDVFile.o varfinz/Plugins/org.apache.cordova.file/CDVFile.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/lorenzo/Desktop/varfinz5/platforms/ios/cordova/build-debug.xcconfig,-project,varfinz.xcodeproj,ARCHS=i386,-target,varfinz,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/lorenzo/Desktop/varfinz5/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/lorenzo/Desktop/varfinz5/platforms/ios/build/sharedpch
Вот часть кода с ошибкой. Ошибка находится на третьей строке с фрагментом self = (CDVFile *) [super initWithWebView: theWebView]; Xcode говорит следующее: «Нет видимых @interface для CDVPlugin заявляет селектор initWithWebView
- (id)initWithWebView:(UIWebView*)theWebView
{
self = (CDVFile*)[super initWithWebView:theWebView];
if (self) {
filePlugin = self;
[NSURLProtocol registerClass:[CDVFilesystemURLProtocol class]];
fileSystems_ = [[NSMutableArray alloc] initWithCapacity:3];
// Get the Library directory path
NSArray* paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
self.appLibraryPath = [[paths objectAtIndex:0] stringByAppendingPathComponent:@"files"];
// Get the Temporary directory path
self.appTempPath = [NSTemporaryDirectory()stringByStandardizingPath]; // remove trailing slash from NSTemporaryDirectory()
// Get the Documents directory path
paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
self.rootDocsPath = [paths objectAtIndex:0];
self.appDocsPath = [self.rootDocsPath stringByAppendingPathComponent:@"files"];
}
return self;
}
Можете ли вы предоставить код? Попробуйте добавить некоторые точки разрыва в свой код и отлаживать, чтобы увидеть, где он ломается. –
привет, да, конечно, я отредактировал сообщение выше –
@ Lorenzo вы используете брелоки для ключей или Facebook? – Gandhi