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

Could not build Objective-C module 'WebKit' #6179

Open
dissesmac opened this issue Apr 12, 2024 · 3 comments
Open

Could not build Objective-C module 'WebKit' #6179

dissesmac opened this issue Apr 12, 2024 · 3 comments
Labels
type:need/problem Report needs or problems you came across that are not bugs

Comments

@dissesmac
Copy link

What problem or need do you have?

Hello,

We have an SPM package in which we are using WKWebView and importing WebKit.

It works fine with the general SPM structure in the project, but we are encountering problems when migrating to Tuist 4. With the 3rd version, everything went smoothly during the migration.
Screenshot 2024-04-12 at 15 50 58

And it was same problem with connecting FirebaseDymaniсLinks.

Potential solution

No response

macOS version

14.4.1

Tuist version

4.9.0

Xcode version

15.3.0

@dissesmac dissesmac added the type:need/problem Report needs or problems you came across that are not bugs label Apr 12, 2024
@fortmarek
Copy link
Member

Hey 👋

Can you attach a reproducible sample? That makes it a lot easier to fix issues like this 🙏

@dissesmac
Copy link
Author

@fortmarek Yes, of course,
I have uploaded a sample project here:
https://github.com/dissesmac/SampleProject

After a long search, I found the same problem for Flutter projects.
https://stackoverflow.com/a/77197293
I used the first workaround, and it works. However, I think this is a temporary solution.

@pepicrft
Copy link
Contributor

@dissesmac did the issue go away by adding this compiler flag to the package target that causes issues?

file.settings[compiler_flags_key] = compiler_flags.gsub(/-DOS_OBJECT_USE_OBJC=0\s*/, '')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:need/problem Report needs or problems you came across that are not bugs
Projects
None yet
Development

No branches or pull requests

3 participants