CocoaPods / cocoapods-packager

CocoaPods plugin which allows you to generate a static library from a podspec.
Other
1.15k stars 221 forks source link

Packaging fails with XCode11 beta 7 #244

Open theMike opened 5 years ago

theMike commented 5 years ago

Using the following command:

pod package ../MyLib.podspec --force --no-mangle --exclude-deps --subspecs=Core --spec-sources='https://git.repo.com/local-cocoapods.git','https://github.com/CocoaPods/Specs.git' --verbose

On Mojave (10.14.6) with : XCode11 beta7 (Build 11M392r) Attempted with both CocoaPods 1.7.5 and 1.8.0 beta.2
I get the following error:

sh: line 1: 46561 Illegal instruction: 4  xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_MyLib=PodsDummy_PodPackage_MyLib' CONFIGURATION_BUILD_DIR=build clean build -configuration Relea
Build command failed: xcodebuild GCC_PREPROCESSOR_DEFINITIONS='$(inherited) PodsDummy_Pods_MyLib=PodsDummy_PodPackage_MyLib'   CONFIGURATION_BUILD_DIR=build clean build -configuration Release -target Pods-pa
Output:
    Build settings from command line:
        CONFIGURATION_BUILD_DIR = build
        GCC_PREPROCESSOR_DEFINITIONS = $(inherited) PodsDummy_Pods_MyLib=PodsDummy_PodPackage_MyLib

    2019-09-09 09:05:19.666 xcodebuild[46561:835863] +dataWithFirstBytes:1024 ofFile:"/var/folders/tf/yz1zzdfn20n9w4lzxpjyryx19vvw7z/T/cocoapods-12t5vzg2/Pods/ComScore/.pod" failed, errno = 2
    note: Using new build system

    ** CLEAN SUCCEEDED **

Packaging works fine when using XCode10.3, 10.2, etc. I can successfully Lint using Xcode 11 beta and Xcode 10.x. I have tried this on two different machines with the same result.

At this point I'm not sure what else I can do and am inclined to think there is something with the packager.

thx.

0x5e commented 5 years ago

Same issue using Xcode 11.0, cocoapods 1.8.4, macOS 10.15. the Xcode 11.0 just crashed, Xcode 10 works fine.😰

isfang commented 5 years ago

I have same issue using Xcode 11.0.

artud2000 commented 4 years ago

Same issue with Xcode 11.4

lllhf commented 3 years ago

Same issue with Xcode11 and Xcode12,any idea to deal with this problem?

lllhf commented 3 years ago

@theMike @0x5e @artud2000 @isfang have u all solve it? thx for your quick reply :)