Helen Crowell created CB-12212:
----------------------------------

             Summary: Cordova iOS build fails with pods that use the 
resource_bundle spec feature.
                 Key: CB-12212
                 URL: https://issues.apache.org/jira/browse/CB-12212
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 4.3.0
            Reporter: Helen Crowell


Cordova iOS build fails with pods that use the `resource_bundle` spec feature.

Tested with two different pods that use the `resource_bundle` spec feature.

cordova version: 6.4.0
Installed platforms:
  ios 4.3.0

Test code:
cordova create test
cd test
cordova platform add ios
cordova build


Test 1:

UrbanAirship-iOS-SDK
https://github.com/urbanairship/ios-library/search?utf8=%E2%9C%93&q=resource_bundle

~/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios$ cat Podfile
# DO NOT MODIFY -- auto-generated by Apache Cordova
platform :ios, '8.0'
target 'TestProj' do
    project 'TestProj.xcodeproj'
    pod 'UrbanAirship-iOS-SDK', '~> 8.1.3'
end


$cordova build

...
=== BUILD TARGET UrbanAirship-iOS-SDK-AirshipResources OF PROJECT Pods WITH 
CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources-generated-files.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources-all-target-headers.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources-own-target-headers.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources-all-non-framework-target-headers.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources-project-headers.hmap

Create product structure
/bin/mkdir -p 
/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/build/emulator/AirshipResources.bundle

CopyPlistFile 
/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/build/emulator/AirshipResources.bundle/Info.plist
 UrbanAirship-iOS-SDK/AirshipKit/AirshipResources/Info.plist
    cd 
/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/Pods
    export 
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/abcuser/Documents/workspace/sandalwood/build/install/sandalwood/bin:/usr/local/bin/cordova:/usr/local/bin/phonegap:/usr/local/bin/npm/bin:/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/bin:/Users/abcuser/Documents/workspace/android-sdk//platform-tools:/Users/abcuser/Documents/workspace/android-sdk/tools"
    builtin-copyPlist --convert binary1 --outdir 
/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/build/emulator/AirshipResources.bundle
 -- UrbanAirship-iOS-SDK/AirshipKit/AirshipResources/Info.plist

ProcessProductPackaging "" 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources.bundle.xcent
    cd 
/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/Pods
    export 
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/abcuser/Documents/workspace/sandalwood/build/install/sandalwood/bin:/usr/local/bin/cordova:/usr/local/bin/phonegap:/usr/local/bin/npm/bin:/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/bin:/Users/abcuser/Documents/workspace/android-sdk//platform-tools:/Users/abcuser/Documents/workspace/android-sdk/tools"
    builtin-productPackagingUtility -entitlements -format xml -o 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources.bundle.xcent
warning: Falling back to contents of entitlements file 
"Entitlements-Debug.plist" because it was modified during the build process. 
Modifying the entitlements file during the build is unsupported.error: The file 
“Entitlements-Debug.plist” couldn’t be opened because there is no such file.

** BUILD FAILED **

The following build commands failed:
    ProcessProductPackaging "" 
/Users/abcuser/Library/Developer/Xcode/DerivedData/TestProj-ceyniiayavksmtaebmmmvxaymsdx/Build/Intermediates/Pods.build/Debug-iphonesimulator/UrbanAirship-iOS-SDK-AirshipResources.build/AirshipResources.bundle.xcent
(1 failure)
Error: Error code 65 for command: xcodebuild with args: 
-xcconfig,/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/cordova/build-debug.xcconfig,-workspace,TestProj.xcworkspace,-scheme,TestProj,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS
 Simulator,name=iPhone 
5s,build,CONFIGURATION_BUILD_DIR=/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/abcuser/Documents/workspace/test_ios_8_1_3_entitlement/platforms/ios/build/sharedpch



Test 2:

HockeySDK
https://github.com/urbanairship/ios-library/search?utf8=%E2%9C%93&q=resource_bundle

~/Documents/workspace/test_hockeysdk/platforms/ios$ cat Podfile
source 'https://github.com/CocoaPods/Specs.git'
target 'Test' do
  platform :ios, '8.0'
  pod "HockeySDK"
end


$cordova build

...
=== BUILD TARGET HockeySDK-HockeySDKResources OF PROJECT Pods WITH 
CONFIGURATION Debug ===

Check dependencies

Write auxiliary files
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources-generated-files.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources-all-non-framework-target-headers.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources-all-target-headers.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources-project-headers.hmap
write-file 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources-own-target-headers.hmap

Create product structure
/bin/mkdir -p 
/Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/build/emulator/HockeySDKResources.bundle

ProcessInfoPlistFile 
/Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/build/emulator/HockeySDKResources.bundle/Info.plist
 Target\ Support\ Files/HockeySDK/ResourceBundle-HockeySDKResources-Info.plist
    cd /Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/Pods
    export 
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/abcuser/Documents/workspace/sandalwood/build/install/sandalwood/bin:/usr/local/bin/cordova:/usr/local/bin/phonegap:/usr/local/bin/npm/bin:/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/bin:/Users/abcuser/Documents/workspace/android-sdk//platform-tools:/Users/abcuser/Documents/workspace/android-sdk/tools"
    builtin-infoPlistUtility 
/Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/Pods/Target\ 
Support\ Files/HockeySDK/ResourceBundle-HockeySDKResources-Info.plist 
-expandbuildsettings -format binary -platform iphonesimulator -o 
/Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/build/emulator/HockeySDKResources.bundle/Info.plist

ProcessProductPackaging "" 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources.bundle.xcent
    cd /Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/Pods
    export 
PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/abcuser/Documents/workspace/sandalwood/build/install/sandalwood/bin:/usr/local/bin/cordova:/usr/local/bin/phonegap:/usr/local/bin/npm/bin:/usr/local/share/python:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/usr/local/bin:/Users/abcuser/Documents/workspace/android-sdk//platform-tools:/Users/abcuser/Documents/workspace/android-sdk/tools"
    builtin-productPackagingUtility -entitlements -format xml -o 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources.bundle.xcent
warning: Falling back to contents of entitlements file 
"Entitlements-Debug.plist" because it was modified during the build process. 
Modifying the entitlements file during the build is unsupported.error: The file 
“Entitlements-Debug.plist” couldn’t be opened because there is no such file.

** BUILD FAILED **

The following build commands failed:
    ProcessProductPackaging "" 
/Users/abcuser/Library/Developer/Xcode/DerivedData/Test-bjhgjtylebyrvaenslbqwflmrwtc/Build/Intermediates/Pods.build/Debug-iphonesimulator/HockeySDK-HockeySDKResources.build/HockeySDKResources.bundle.xcent
(1 failure)
Error: Error code 65 for command: xcodebuild with args: 
-xcconfig,/Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/cordova/build-debug.xcconfig,-workspace,Test.xcworkspace,-scheme,Test,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS
 Simulator,name=iPhone 
5s,build,CONFIGURATION_BUILD_DIR=/Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/abcuser/Documents/workspace/test_hockeysdk/platforms/ios/build/sharedpch



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to