j3k0 / cordova-plugin-openwith

Get your Cordova App in the O.S. "Share" menu on iOS and Android
MIT License
138 stars 114 forks source link

Cannot build ios #34

Open JustasKuizinas opened 6 years ago

JustasKuizinas commented 6 years ago

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 commented 6 years ago

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

j3k0 commented 6 years ago

@JustasKuizinas Learned anything?

JustasKuizinas commented 6 years ago

@j3k0 no nothing yet

FedericoAlvarez commented 6 years ago

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

NiklasMerz commented 6 years ago

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

FedericoAlvarez commented 6 years ago

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.

JustasKuizinas commented 6 years ago

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

NiklasMerz commented 6 years ago

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.

JustasKuizinas commented 6 years ago

@NiklasMerz hm what kind of stuff?

NiklasMerz commented 6 years ago

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 notifications@github.com 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

FedericoAlvarez commented 6 years ago

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.

tobeee commented 6 years ago

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

FedericoAlvarez commented 6 years ago

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.

hackinghieser commented 5 years ago

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.