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

dyld: symbol not found #33

Closed
timfallmk opened this issue Sep 18, 2018 · 2 comments
Closed

dyld: symbol not found #33

timfallmk opened this issue Sep 18, 2018 · 2 comments

Comments

@timfallmk
Copy link

I recently updated the dependencies on my project and migrated to XCode 10 (Swift 4.2), and am now getting the following error when attempting to run an async {} call:

dyld: Symbol not found: _$S10PromiseKit10CatchMixinPAAE5catch2on6policy_AA12PMKFinalizerCSo17OS_dispatch_queueCSg_AA0C6PolicyOys5Error_pctFfA_
  Referenced from: /Users/timfall/Library/Developer/CoreSimulator/Devices/AC33C793-B0CF-4734-8B02-21547E653088/data/Containers/Bundle/Application/A6ECAD16-8B83-4D4B-9D31-EB4E0E9A085C/WikiMessage.app/PlugIns/WikiMessage MessagesExtension.appex/../../Frameworks/AwaitKit.framework/AwaitKit
  Expected in: /Users/timfall/Library/Developer/CoreSimulator/Devices/AC33C793-B0CF-4734-8B02-21547E653088/data/Containers/Bundle/Application/A6ECAD16-8B83-4D4B-9D31-EB4E0E9A085C/WikiMessage.app/PlugIns/WikiMessage MessagesExtension.appex/../../Frameworks/PromiseKit.framework/PromiseKit

The line in reference is the following function:

func getSearchResults(searchText: String) -> [Wikipedia] {
	async {
		searchResults = try! await(networkFunctions.searchForArticle(searchText: searchText))
	}
	return searchResults
}

I'm guessing it's a breaking change with the PromiseKit version required for XCode 10?
Here's my Cartfile.resolved:

github "SwiftyJSON/SwiftyJSON" "4.1.0"
github "hyperoslo/Whisper" "6.0.2"
github "mxcl/PromiseKit" "6.4.0"
github "onevcat/Kingfisher" "4.9.0"
github "yannickl/AwaitKit" "5.0.0"
@yannickl
Copy link
Owner

I've updated the PromiseKit version in the Cartage file. Is it resolve the issue?

Note that I don't push new version, use the latest commit in the master branch.

@timfallmk
Copy link
Author

Perfect! Looks good for release.

yannickl added a commit that referenced this issue Sep 20, 2018
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

No branches or pull requests

2 participants