-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Texture + Xcode 9.3/Swift 4.1 via Carthage is broken #873
Comments
+1 |
I have the same problem *** Building scheme "AsyncDisplayKit" in AsyncDisplayKit.xcworkspace This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/xh/0p311s3j6rl5nmm29_brfc340000gn/T/carthage-xcodebuild.FbOUKy.log |
in ASDefaultPlaybackButton.m ASDefaultPlaybackButtonType buttonType = (ASDefaultPlaybackButtonType)[parameters[@"buttonType"] intValue]; The two lines of code are wrong. |
seems this is related to #875 |
Refer to other partners' temporary solutions, declare parameters as NSDictionary
|
Looks like this may have been fixed and merged into master 6 days ago by @maicki. If anyone on this thread can confirm, I can go ahead and close this issue... |
I'm still having issues when using carthage:
I am using the master branch |
Hi! Here is a description of this error: This problem is only occurs when building for iphonesimulator with architecture |
Yes unfortunately Xcode 9.3 removed support for i386 (32-bit simulator) thread-local variables. Since that particular architecture is pretty useless these days and will soon be phased out when we drop iOS 9 (not that we have concrete plans to do that,) I'd rather address why Carthage insists on building that architecture rather than fork all the places in our code where we rely on thread-local storage. Not knowing much about Carthage, is there any way to configure what architectures are eagerly built? It seems like 64-bit simulator and ARM64 are the most relevant, and then 32-bit ARM in rare cases/App Store builds. |
Here is an easy workaround: #!/usr/bin/env bash
set -euo pipefail
IFS=$'\n\t'
xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT
echo "ONLY_ACTIVE_ARCH[sdk=iphonesimulator*] = YES" >>$xcconfig
export XCODE_XCCONFIG_FILE="$xcconfig"
carthage update --platform ios $@ And use it to perform carthage update. This script will force carthage to build only active arch when building for iphonesimulator. |
anyone can fix it? |
@ishall1 Why don't you just use my solution? |
I managed to fix my
|
@Adlai-Holler Thanks for the hint! I'll look into whether there's a way to configure what architectures are built, or whether we would have to use a script. That said, quick heads up that this seems like an issue that's hitting cocoapods folk, too (see @bajtyngier's comment above). |
@Saik0s Thanks for your reply. But your solution doesn't fix my problem . Now I use 'pod install' and it works well. |
You could also be able to fix this if you remove i386 from VALID_ARCHS. |
I downloaded Xcode 9.3 last night, ran
carthage update
(pointed at Texture'srelease
branch), and rebuilt my project. It builds successfully, butSIGABRT
s on run. I've done all the usual stuff: deleted derived data, removed texture and dependencies entirely from checkout/build folders (and done a fresh install), etc. but nothing has worked. I've also tried themaster
branch which bails duringcarthage update
as follows:Here's a sample project that reproduces the runtime error for the
release
branch. Be sure to runcarthage update
first; I deleted theCarthage
folder to reduce the file size of the sample project:SadTexture.zip
The text was updated successfully, but these errors were encountered: