cordova-plugin-openwith icon indicating copy to clipboard operation
cordova-plugin-openwith copied to clipboard

Cannot build ios

Open JustasKuizinas opened this issue 6 years ago • 14 comments

When I try to build ios: ionic cordova build ios

I get this error

The following build commands failed:
	CompileC /Users/user905941/Library/Developer/Xcode/DerivedData/Nicehash-avhemrwudlhajearzlilnbektwem/Build/Intermediates.noindex/Nicehash.build/Debug-iphonesimulator/Nicehash.build/Objects-normal/x86_64/OpenWithPlugin.o Nicehash/Plugins/cc.fovea.cordova.openwith/OpenWithPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/user905941/Projects/Nicehash/NicehashApp/NicehashApp/platforms/ios/cordova/build-debug.xcconfig,-workspace,Nicehash.xcworkspace,-scheme,Nicehash,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/user905941/Projects/Nicehash/NicehashApp/NicehashApp/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/user905941/Projects/Nicehash/NicehashApp/NicehashApp/platforms/ios/build/sharedpch
An error occurred while running subprocess cordova.

Any ideas how to fix it?

JustasKuizinas avatar Sep 24 '18 18:09 JustasKuizinas

Seems it's problem with cordova-plugin-openwith plugin, if I remove it I can succesfully run ionic cordova build ios

JustasKuizinas avatar Sep 24 '18 19:09 JustasKuizinas

@JustasKuizinas Learned anything?

j3k0 avatar Oct 05 '18 06:10 j3k0

@j3k0 no nothing yet

JustasKuizinas avatar Oct 05 '18 09:10 JustasKuizinas

I'm using ionic and I have the same issue, any idea how can I make it work?

FedericoAlvarez avatar Oct 08 '18 17:10 FedericoAlvarez

Does your project build when you open the native project in Xcode?

NiklasMerz avatar Oct 09 '18 18:10 NiklasMerz

I realize if I build the app when the emulator is running something crashes and it's impossible to build again. The only workaround I found was to delete and install again ios platform.

FedericoAlvarez avatar Oct 10 '18 14:10 FedericoAlvarez

No I build from command line. @FedericoAlvarez so plugin works for you?

JustasKuizinas avatar Oct 10 '18 14:10 JustasKuizinas

Sometimes I have problems with building via the command line and I have to open the project in Xcode and fix some stuff to make it run.

NiklasMerz avatar Oct 10 '18 16:10 NiklasMerz

@NiklasMerz hm what kind of stuff?

JustasKuizinas avatar Oct 10 '18 17:10 JustasKuizinas

Just try to run the build. Mostly some errors about signing or building will appear.

Am 10. Okt. 2018, 19:14, um 19:14, Justas Kuizinas [email protected] schrieb:

@NiklasMerz hm what kind of stuff?

-- You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub: https://github.com/j3k0/cordova-plugin-openwith/issues/34#issuecomment-428655106

NiklasMerz avatar Oct 10 '18 17:10 NiklasMerz

Sometimes I have problems with building via the command line and I have to open the project in Xcode and fix some stuff to make it run.

In my case, it seems to be working on Xcode but not on the command line.

FedericoAlvarez avatar Oct 10 '18 18:10 FedericoAlvarez

I'm running into this issue also - anyone have a workaround?

It seems deleting the plugin, building, then re-installing plugin and running from Xcode solves it but it's a lot of effort for each build

tobeee avatar Oct 21 '18 08:10 tobeee

I'm running into this issue also - anyone have a workaround?

It seems deleting the plugin, building, then re-installing plugin and running from Xcode solves it but it's a lot of effort for each build

In my case I've realized even though the build command fails, the changes were implemented. I'm thinking of uninstalling the plugin when I'm developing other stuff and when I need to release a new version I will install it.

FedericoAlvarez avatar Oct 22 '18 14:10 FedericoAlvarez

I have the same issue if you run cordova build ios. Just open xCode after your build cmd and push it on your device from there.

AlexanderHieser avatar Mar 01 '19 09:03 AlexanderHieser