unexpected phonegap build error - ios

So everything was going nice, succesful build and testing on my device then phonegap gives me this error and my build fails. I tried uninstalling and reinstalling various versions, attempting to rebuild old projects building, updating and downgrading.. but nothing I've tried has worked. Any ideas?
Heres the error:
/Users/spencerpope/webslinger/platforms/ios/webslinger/Classes/AppDelegate.m:80:25: error:
property 'useSplashScreen' not found on object of type
'CDVViewController *'
self.viewController.useSplashScreen = YES;
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/webslinger.build/Debug-iphonesimulator/webslinger.build/Objects- normal/i386/main.o webslinger/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/webslinger.build/Debug-iphonesimulator/webslinger.build/Objects-normal/i386/AppDelegate.o webslinger/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
{ [Error: /Users/spencerpope/webslinger/platforms/ios/cordova/build: Command failed with exit code 65] code: 65 }
[error] /Users/spencerpope/webslinger/platforms/ios/cordova/build: Command failed with exit code 65

Related

Ionic 3 iOS release build failing

I am trying to build(release) my ionic 3 apps for iOS. I was able to do it earlier without any problem but all of a sudden I started to get below errors
/Users/akash/Desktop/sourcecode /platforms/ios/Xpym/Plugins/cordova-plugin-ionic-webview/CDVWKWebViewEngine.h:21:9: fatal error: 'Cordova/CDV.h' file not found
#import <Cordova/CDV.h>
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/akash/Library/Developer/Xcode/DerivedData/Xpym-bvfukasejehwgkcvbzmyfdzldbzg/Build/Intermediates.noindex/Xpym.build/Release-iphonesimulator/Xpym.build/Objects-normal/x86_64/IONAssetHandler.o
/Users/akash/Desktop/sourcecode\
/platforms/ios/Xpym/Plugins/cordova-plugin-ionic-webview/IONAssetHandler.m
normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure) xcodebuild: Command failed with exit code 65
I have tried removing node_modules folder and reinstalling them, reinstalling ios platform but I am now continuously getting this error.
But when I build it without --release, the build is successful.

React Native Firebase build error

I've been struggling with getting my react native instance to run and i keep hitting this:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/alexvallejo/Sites/myProj/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/BannerComponent.o /Users/alexvallejo/Sites/myProj/node_modules/react-native-firebase/ios/RNFirebase/admob/BannerComponent.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/alexvallejo/Sites/myProj/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/NativeExpressComponent.o /Users/alexvallejo/Sites/myProj/node_modules/react-native-firebase/ios/RNFirebase/admob/NativeExpressComponent.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Installing build/Build/Products/Debug-iphonesimulator/myProj.app
An error was encountered processing the command (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/alexvallejo/Library/Developer/CoreSimulator/Devices/31C5C7FC-9DE4-4F95-A7F5-50296C8CC6CB/data/Library/Caches/com.apple.containermanagerd/Bundle/Application/0170A665-460A-4CDF-92B4-0FAC8FBE2224/myProj.app/myProj : No such file or directory
Launching org.reactjs.native.example.myProj
Any ideas on what's going on here? I dont have pod 'Firebase/AdMob' in my Podfile so i don't know why BannerComponent is trying to load.
Make sure you're building with the latest Xcode version. Had the same issue with outdated Xcode.

react ios build error

I am trying to run react native. But when I tried to build ios the below errors are showing
** BUILD FAILED **
The following commands produced analyzer issues:
Analyze Base/RCTPlatform.m Analyze Views/RCTTabBarItem.m
Analyze Views/RCTTabBar.m Analyze Profiler/RCTProfile.m (4 commands
with analyzer issues)
The following build commands failed: CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTPlatform.o
Base/RCTPlatform.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarItem.o
Views/RCTTabBarItem.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBar.o
Views/RCTTabBar.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler CompileC
/apps/snp/snapstaff_talent/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTProfile.o
Profiler/RCTProfile.m normal x86_64 objective-c
com.apple.compilers.llvm.clang.1_0.compiler Analyze
Base/RCTPlatform.m Analyze Views/RCTTabBarItem.m Analyze
Views/RCTTabBar.m Analyze Profiler/RCTProfile.m Libtool
/apps/snp/snapstaff_talent/ios/build/Build/Products/Debug-iphonesimulator/libReact.a
normal x86_64 Ld
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app/snapstaff_talent
normal x86_64 GenerateDSYMFile
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app.dSYM
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app/snapstaff_talent
Ld
build/Build/Products/Debug-iphonesimulator/snapstaff_talentTests.xctest/snapstaff_talentTests
normal x86_64 GenerateDSYMFile
build/Build/Products/Debug-iphonesimulator/snapstaff_talentTests.xctest.dSYM
build/Build/Products/Debug-iphonesimulator/snapstaff_talentTests.xctest/snapstaff_talentTests
(13 failures)
Installing
build/Build/Products/Debug-iphonesimulator/snapstaff_talent.app An
error was encountered processing the command
(domain=LaunchServicesError, code=0): The operation couldn’t be
completed. (LaunchServicesError error 0.) Launching
org.reactjs.native.example.snapstaff-talent An error was encountered
processing the command (domain=FBSOpenApplicationErrorDomain, code=4):
The operation couldn’t be completed. (FBSOpenApplicationErrorDomain
error 4.)
I am new on react native. I am using OS X El Capitan. please help me out of this.

Build falied while running iOS Code from Jenkins

I am taking my iPhone app code from SVN and then trying to build it via Jenkins. Xcode version 7.3.1
But I am getting the following error -
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/Release-iphoneos/xxxxxxx.app/xxxxxxx normal armv7
(1 failure)
Build step 'Xcode' marked build as failure
Finished: FAILURE
I have already spent days to resolve this and would appreciate if some one can help me. Let me know if more details are needed.
Thanks.

Creating an iPA using command line for a Phonegap project

I used the following instructions http://docs.phonegap.com/en/2.0.0/guide_command-line_index.md.html#Command-Line%20Usage for setting up the command line tools for iOS.
But when I try to build the project with $ /path/to/my_new_cordova_project/cordova/debug
I get this:
In file included from /Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.m:28:
/Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/MainViewController.o ios_project/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/AppDelegate.o ios_project/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
When I build the project with Xcode everything works fine but I´d prefer to use the command line tools.
I got:
Xcode 5.0
PhoneGap 2.9.1 and I have tried in 3.4.0
This error appears probably by using the workspace file. Trying with the xcode project directory should resolve the problem.

Resources