cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Kadochnikov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12212) Cordova iOS build fails with pods that use the resource_bundle spec feature.
Date Fri, 03 Mar 2017 07:28:45 GMT

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

Andrey Kadochnikov commented on CB-12212:
-----------------------------------------

I've managed to get rid of the error related with "Falling back to contents of entitlements
file 
{code}
"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."
{code}
by removing CODE_SIGN_ENTITLEMENTS setting from build.xcconfig. Looks like xcodebuild doesn't
like this setting to be set during the build process. But now `cordova build` succeeds *only*
after the project was previously built from Xcode:
{code}
ld: warning: directory not found for option '-F/Users/andreykadochnikov/Library/Developer/Xcode/DerivedData/HelloCordova-buvcmboppkcsqpdfonhoggchseuq/Build/Products/Debug-iphonesimulator/CocoaLumberjack'
ld: warning: directory not found for option '-F/Users/andreykadochnikov/Library/Developer/Xcode/DerivedData/HelloCordova-buvcmboppkcsqpdfonhoggchseuq/Build/Products/Debug-iphonesimulator/MobileMessaging'
ld: framework not found CocoaLumberjack
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **


The following build commands failed:
	Ld /Users/andreykadochnikov/cord2/platforms/ios/build/emulator/CocoaLumberjack.framework/CocoaLumberjack
normal x86_64
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/andreykadochnikov/cord2/platforms/ios/cordova/build-debug.xcconfig,-workspace,HelloCordova.xcworkspace,-scheme,HelloCordova,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS
Simulator,name=iPhone 5s,build,CONFIGURATION_BUILD_DIR=/Users/andreykadochnikov/cord2/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/andreykadochnikov/cord2/platforms/ios/build/sharedpch
{code}
 I'm trying hard to find what causes this strange behaviour but no luck so far.

> 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
>             Fix For: cordova-ios@4.4.0
>
>
> 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.3.15#6346)

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


Mime
View raw message