You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Alex (JIRA)" <ji...@apache.org> on 2017/06/21 13:46:00 UTC

[jira] [Commented] (CB-12212) Cordova iOS build fails with pods that use the resource_bundle spec feature.

    [ https://issues.apache.org/jira/browse/CB-12212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057539#comment-16057539 ] 

Alex commented on CB-12212:
---------------------------

Is there any workaround for this issue? I am trying to get Alamofire with the help of cocoapods but I am stucked where Andrey is stucked. Is there any solution provided?
I wonder if I can get the framework and add it manually into the project until the release of cordova-ios 4.4.1.

> 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: cordova-ios
>    Affects Versions: 4.3.0
>            Reporter: Helen Crowell
>            Assignee: Shazron Abdullah
>             Fix For: cordova-ios@4.4.1
>
>         Attachments: cordova-ios-patch.diff, cordova-ios-patch.diff
>
>
> 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:
> {code}
> cordova create test
> cd test
> cordova platform add ios
> cordova build
> {code}
> Test 1:
> UrbanAirship-iOS-SDK
> https://github.com/urbanairship/ios-library/search?utf8=%E2%9C%93&q=resource_bundle
> {code}
> ~/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
> {code}
> Test 2:
> {code}
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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