transistorsoft / cordova-background-geolocation-lt

The most sophisticated background location-tracking & geofencing module with battery-conscious motion-detection intelligence for iOS and Android.
http://www.transistorsoft.com/shop/products/cordova-background-geolocation
Other
660 stars 276 forks source link

iOS build fails :could not find included file 'Pods/Target Support Files/Pods-MyProject/Pods-MyProject.debug.xcconfig #1048

Closed PWRM closed 4 years ago

PWRM commented 4 years ago

Your Environment

document.addEventListener('deviceready', onDeviceReady, false);


## Expected Behavior
Application should build without errors

## Actual Behavior
iOS build fails :could not find included file 'Pods/Target Support Files/Pods-MyProject/Pods-MyProject.debug.xcconfig

## Steps to Reproduce

1. Install according to manual
2. cordova add platform iOS
3. cordova build iOS
4.

## Context
Trying to build the iOS version

## Debug logs
<!-- include iOS / Android logs
- ios XCode logs,
- use #getLog #emailLog methods (@see docs)
- Android: $ adb logcat
-->
<details>
    <summary>Logs</summary>

```<!-- Syntax highlighting:  DO NOT REMOVE -->
BC:OnLocation PvH$ cordova build ios
Building project: /Users/PvH/OnLocation/platforms/ios/OnLocation.xcworkspace
    Configuration: Debug
    Platform: device
    Target: 
Running command: xcodebuild -workspace OnLocation.xcworkspace -scheme OnLocation -configuration Debug -destination generic/platform=iOS -archivePath OnLocation.xcarchive archive CONFIGURATION_BUILD_DIR=/Users/PvH/OnLocation/platforms/ios/build/device SHARED_PRECOMPS_DIR=/Users/PvH/OnLocation/platforms/ios/build/sharedpch
User defaults from command line:
    IDEArchivePathOverride = /Users/PvH/OnLocation/platforms/ios/OnLocation.xcarchive

Build settings from command line:
    CONFIGURATION_BUILD_DIR = /Users/PvH/OnLocation/platforms/ios/build/device
    SHARED_PRECOMPS_DIR = /Users/PvH/OnLocation/platforms/ios/build/sharedpch

note: Using new build system
note: Planning build
note: Constructing build description
error: /Users/PvH/OnLocation/platforms/ios/cordova/../pods-debug.xcconfig:2: could not find included file 'Pods/Target Support Files/Pods-OnLocation/Pods-OnLocation.debug.xcconfig' in search paths (in target 'OnLocation' from project 'OnLocation')
error: /Users/PvH/OnLocation/platforms/ios/cordova/../pods-debug.xcconfig:2: could not find included file 'Pods/Target Support Files/Pods-OnLocation/Pods-OnLocation.debug.xcconfig' in search paths (in target 'OnLocation' from project 'OnLocation')
error: /Users/PvH/OnLocation/platforms/ios/cordova/../pods-debug.xcconfig:2: could not find included file 'Pods/Target Support Files/Pods-OnLocation/Pods-OnLocation.debug.xcconfig' in search paths (in target 'OnLocation' from project 'OnLocation')

** ARCHIVE FAILED **

xcodebuild: Command failed with exit code 65
BC:OnLocation PvH$ 

christocracy commented 4 years ago

How are you building? via Cordova CLI or in XCode?

PWRM commented 4 years ago

via Cordova CLI. Thank you for your quick response

christocracy commented 4 years ago
$ cat platforms/ios/Podfile
PWRM commented 4 years ago

DO NOT MODIFY -- auto-generated by Apache Cordova

platform :ios, '10.0'

target 'OnLocation' do project 'OnLocation.xcodeproj' pod 'CocoaLumberjack', '~> 3.5.0' end

christocracy commented 4 years ago
cd platforms/ios
pod install
PWRM commented 4 years ago

no, still the same error

christocracy commented 4 years ago

I don't know.

PWRM commented 4 years ago

Yes, I googled but can't find this error related to your plugin. I always open the xcworkspace. There is a Pods directory added inside iOS directory with 3 subdirectories, Headers, Local Podspecs and Target Support Files. All are empty.

PWRM commented 4 years ago

Completely removed project and setup a new project, starting with the installation of iOS and this plugin. This worked.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

stale[bot] commented 4 years ago

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

jitrani commented 4 years ago

error: could not find included file 'Pods/Target Support Files/in search paths I am getting this issue in xcode while doing build.Can you guys help me out.

christocracy commented 4 years ago

Are you opening the .xcworkspace in XCode? You must. You can't use the .xcodeproj

jitrani commented 4 years ago

@christocracy yes i am opening .xcworkspace in xcode only.

christocracy commented 4 years ago

No idea. Did you do as mentioned above?

jitrani commented 4 years ago

@christocracy no okay i will try this one.Thank you.

dwq0048 commented 2 years ago

I have the same problem.

The project was retried several times.

But the result is a failure. "pod install" also fails

Has anyone fixed the issue where Target Support Files are empty?