Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES to No #220

Merged
merged 1 commit into from
Oct 23, 2016

Conversation

ky1ejs
Copy link
Contributor

@ky1ejs ky1ejs commented Oct 21, 2016

Embedding the libraries is causing packaging archives to an .ipa to fail like so:

INFO [2016-10-20 22:14:16.77]: ▸ + xcodebuild -exportArchive -exportOptionsPlist /var/folders/qv/8ntp55hd26j0zsrdt5tshr900000gn/T/gym_config20161020-99083-8ecbyq.plist -archivePath '/Users/kylejm/Library/Developer/Xcode/Archives/2016-10-20/Loot Release 2016-10-20 22.09.51.xcarchive' -exportPath /var/folders/qv/8ntp55hd26j0zsrdt5tshr900000gn/T/gym_output20161020-99083-i6w8o4
INFO [2016-10-20 22:14:17.97]: ▸ 2016-10-20 22:14:17.976 xcodebuild[99721:3856687] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/qv/8ntp55hd26j0zsrdt5tshr900000gn/T/Loot Release_2016-10-20_22-14-17.975.xcdistributionlogs'.
INFO [2016-10-20 22:14:19.06]: ▸ 1.2.840.113635.100.1.61
INFO [2016-10-20 22:14:20.25]: ▸ 2016-10-20 22:14:20.253 xcodebuild[99721:3856687] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-11246/IDEFoundation/Distribution/IDEDistributionSummaryStep.m:213
INFO [2016-10-20 22:14:20.25]: ▸ Details:  A method claimed to have succeeded but provided an error!
INFO [2016-10-20 22:14:20.25]: ▸ Object:   <IDEDistributionSummaryStep>
INFO [2016-10-20 22:14:20.25]: ▸ Method:   +_distributionItemsWithoutBitcodeForPlatforms:flattenedDistributionItems:archive:withError:
INFO [2016-10-20 22:14:20.25]: ▸ Thread:   <NSThread: 0x7fecd6511430>{number = 1, name = main}
INFO [2016-10-20 22:14:20.25]: ▸ Hints: None
INFO [2016-10-20 22:14:20.25]: ▸ Backtrace:
INFO [2016-10-20 22:14:20.25]: ▸ 0   -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
INFO [2016-10-20 22:14:20.25]: ▸ 1   _DVTAssertionHandler (in DVTFoundation)
INFO [2016-10-20 22:14:20.25]: ▸ 2   _DVTAssertionFailureHandler (in DVTFoundation)
INFO [2016-10-20 22:14:20.25]: ▸ 3   +[IDEDistributionSummaryStep _distributionItemsWithoutBitcodeForPlatforms:flattenedDistributionItems:archive:withError:] (in IDEFoundation)
INFO [2016-10-20 22:14:20.25]: ▸ 4   -[IDEDistributionSummaryStep distributionItemsWithoutBitcodeForPlatforms:withError:] (in IDEFoundation)
INFO [2016-10-20 22:14:20.25]: ▸ 5   -[IDEDistributionSummaryStep loadFromPropertyList:error:] (in IDEFoundation)
INFO [2016-10-20 22:14:20.25]: ▸ 6   -[IDEDistributionDriver runWithDestinationPath:error:] (in IDEFoundation)
INFO [2016-10-20 22:14:20.25]: ▸ 7   -[Xcode3CommandLineBuildTool _distributeArchiveAndExit] (in Xcode3Core)
INFO [2016-10-20 22:14:20.25]: ▸ 8   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
INFO [2016-10-20 22:14:20.26]: ▸ 9  0x0000000101ab2202 (in xcodebuild)
INFO [2016-10-20 22:14:20.26]: ▸ 10   start (in libdyld.dylib)

After a few hours of confusion, I found this thread, where zirinisp talks about this fix:

zirinisp
Oct 3, 2016 12:02 AM
(in response to zirinisp)
I finally found a solution to the above problem. I had a framework (added through carthage) that was including libraries and other frameworks. You can identify that you have the same problem as me using the following steps:

- Do a carthage update and add all framework on xcode (you have probably already done this step when you setup xcode).
- Then open xcode and on the left side go to the frameworks folden and expand.
- You should get a list with all frameworks installed
- Then expand each framework.
- You should only see a folder called "Headers"
- If you see a folder called "Frameworks", then you have the problem I had.

To solve it you need to create a fork on github (or the git site that you checked out the framework) and go to the build settings and set the following:

ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;

I can now package our application by targeting our branch with this fix 🎉.

Relates to an issue with with gym from fastlane.

It's stopping packaging for App Store. See zirinisp's message at Oct 3, 2016 12:02 AM on [this thread](https://forums.developer.apple.com/thread/54445).
@AliSoftware
Copy link
Owner

Might be a duplicate of #217 right?

(Which I still haven't had time to merge since I want to test if this modification doesn't break the CocoaPods installation)

@Ashton-W
Copy link
Collaborator

@AliSoftware cocoapods doesn't use library project files at all, so it will have no change there.

@AliSoftware AliSoftware merged commit 1249225 into AliSoftware:master Oct 23, 2016
AliSoftware added a commit that referenced this pull request Oct 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants