Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android working fine now but issues with Pods for iOS #15

Closed
REPTILEHAUS opened this issue Jun 25, 2019 · 5 comments
Closed

Android working fine now but issues with Pods for iOS #15

REPTILEHAUS opened this issue Jun 25, 2019 · 5 comments
Labels
documentation Documentation issue

Comments

@REPTILEHAUS
Copy link

Nice work getting this launched, solved my issues with android... however stopping that leak with my finger spawned another leak :D I cant build for iOS now

This is my build script. nothing major just clears emulator caches, then copys env and builds then removes prev ios platform and adds new one

#!/bin/bash
# ionic build
/usr/bin/xcrun simctl erase all
node scripts/copy-environment.js --env prod && ionic cordova build ios --prod --release
ionic cordova platform rm ios
cordova platform add ios@5.0.0

Error occurs during running of script

    build-release.xcconfig line 29: Unable to find included file "Pods/Target Support Files/Pods-AppName/Pods-AppName.release.xcconfig"** BUILD FAILED **


The following build commands failed:
	CompileC /Users/myname/Library/Developer/Xcode/DerivedData/AppName-bucwxhodaumzfehhbvriuiyugncg/Build/Intermediates.noindex/Appname.build/Release-iphonesimulator/Appname.build/Objects-normal/x86_64/AppDelegate+FirebasePlugin.o Appname/Plugins/cordova-plugin-firebasex/AppDelegate+FirebasePlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/Applications/Apps/appname/app/platforms/ios/cordova/build-release.xcconfig,-workspace,AppName.xcworkspace,-scheme,AppName,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone Xʀ,build,CONFIGURATION_BUILD_DIR=/Applications/Apps/appname/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Applications/Apps/appname/app/platforms/ios/build/sharedpch,-UseModernBuildSystem=0'
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)

Also during running of script

Checking cordova-plugin-device for pods.
Checking cordova-plugin-file for pods.
Checking cordova-plugin-firebasex for pods.
cordova-plugin-firebasex requires pod: Firebase/Core
cordova-plugin-firebasex requires pod: Firebase/Auth
cordova-plugin-firebasex requires pod: Firebase/Messaging
cordova-plugin-firebasex requires pod: Firebase/Performance
cordova-plugin-firebasex requires pod: Firebase/RemoteConfig
cordova-plugin-firebasex requires pod: Fabric
cordova-plugin-firebasex requires pod: Crashlytics
Checking cordova-plugin-inappbrowser for pods.
Checking cordova-plugin-ionic-keyboard for pods.
Checking cordova-plugin-ionic-webview for pods.
Checking cordova-plugin-splashscreen for pods.

It seems to complete compiling without error but when i open the project in xcode and try to build it there for a device
I get these errors

Showing Recent Messages
:-1: /Applications/Apps/AppName/app/platforms/ios/cordova/build-debug.xcconfig:34: could not find included file 'Pods/Target Support Files/Pods-AppName/Pods-AppName.debug.xcconfig' in search paths (in target 'AppName')

@dpa99c
Copy link
Owner

dpa99c commented Jun 25, 2019

Did you open YourProject.xcworkspace or YourProject.xcodeproj in Xcode?
(you need to open YourProject.xcworkspace so both your Cordova app project and the Pods project will be loaded into Xcode.)

Please try cloning and building this example project as a reference.

@REPTILEHAUS
Copy link
Author

I got it running by installing cocoapods, pods setup, pods install in /platform/ios/

It wasnt necessary before though, anyway its up and running now for both platforms so thats the main thing. Great fix, you should really consider taking this over as the other maintainers dont seem to care at all

@dpa99c
Copy link
Owner

dpa99c commented Jun 25, 2019

I already have Cocopods installed for native dev purposes so didn't even think about it as a peer dependency. I should update the documentation for this fork to say that global cocopods installation is a prerequisite. Therefore I'll leave this issue open to remind me to do that.

@dpa99c dpa99c added documentation Documentation issue TODO Something needs doing labels Jun 25, 2019
@dpa99c dpa99c closed this as completed in 815f42b Jun 25, 2019
@dpa99c dpa99c removed the TODO Something needs doing label Jul 16, 2019
@b-d-m-p
Copy link

b-d-m-p commented Oct 9, 2019

I'm still having the same issue. Not able to fix it with the suggestions.

@michelepatrassi
Copy link

@b-d-m-p did you followed these steps?

I also added sudo gem update cocoapods before those

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation issue
Projects
None yet
Development

No branches or pull requests

4 participants