Comments (21)
Turns out this is listed as a known issue in the Xcode 15 beta 3 release notes:
![CleanShot 2023-07-06 at 10 47 03](https://private-user-images.githubusercontent.com/67184/251470367-ec0e1186-e8a8-4ef0-85e0-3d45e0b70b5f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzMzg1MDQsIm5iZiI6MTcxOTMzODIwNCwicGF0aCI6Ii82NzE4NC8yNTE0NzAzNjctZWMwZTExODYtZThhOC00ZWYwLTg1ZTAtM2Q0NWUwYjcwYjVmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI1VDE3NTY0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyMGFjZjQ4M2E1MGY1MmM0ZGM2NzJhZDA1OTRhZmExY2I1NGMwZjc4ODE3M2FhZmVkYTcxMWY3YjA1ZTY5YzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JapS2OfaFaudzqo9ppS6KYPpbDmY7mtS0sYlJOLoUVo)
from reports.
not fixed on beta 4
from reports.
Same here :( How can such a major bug slip through? Or is there a way to use SwiftData without the @model macro?
You can use SwiftData but you have to comment out the new #Previews which makes is a bit inconvenient
from reports.
This seems to be an issue with SwiftData. I was having the same problem, and removing the @model macro annotation (and associated code) corrected the preview issue. Obviously not ideal, but helps narrow it down.
from reports.
can confirm, my app I had converted to SwiftData no longer builds
from reports.
Managed to get mine to build (first one took a while), but not being able to use previews is not very convenient at all.
from reports.
Can confirm this as well. Can build to simulator and phone with no issue but the preview canvas fails due the @model macro associated with SwiftData.
from reports.
Turns out this is listed as a known issue in the Xcode 15 beta 3 release notes:
![]()
Good catch! I need to be better in the future about going line-by-line in the release notes. Thanks for pointing this one out!
from reports.
I have the same issue when building the app to place it on my device. Is there a workaround for this to test the app on our devices?
from reports.
having the same problem. What is strange is that I erased the Hard Drive and did a fresh install and then a fresh install of Xcode Beta 3 and right away, I am having the same problem. And again, once I remove @model the problem goes away
Undefined symbols:
Linker command failed with exit code 1 (use -v to see invocation)
from reports.
Same here :( How can such a major bug slip through? Or is there a way to use SwiftData without the @model macro?
from reports.
Same here :( How can such a major bug slip through? Or is there a way to use SwiftData without the @model macro?
You can use SwiftData but you have to comment out the new #Previews which makes is a bit inconvenient
Ah… I haven’t tried using the old Preview struct. If this still works, it’s only half as bad.
from reports.
Yup and the good old PreviewProvider also does not work :<
from reports.
The issue only appears with @model macro when using SwiftData. Even with old PreviewProvider, it does not work. And beta 4 does not fix the issue... (it is still written as a known issue)
from reports.
This has been mentioned in the Xcode 14 beta 4 release notes:
- Previewing view code in a SwiftData app results in a linker failure for the canvas despite that code compiling successfully for device and simulator. (111657477)
Workaround: Run your app in the simulator to test your UI instead of using Previews.
from reports.
This has been mentioned in the Xcode 14 beta 4 release notes:
- Previewing view code in a SwiftData app results in a linker failure for the canvas despite that code compiling successfully for device and simulator. (111657477)
Workaround: Run your app in the simulator to test your UI instead of using Previews.
I tried to run my app on my own iPhone, it still didn't work...
from reports.
This has been mentioned in the Xcode 14 beta 4 release notes:
- Previewing view code in a SwiftData app results in a linker failure for the canvas despite that code compiling successfully for device and simulator. (111657477)
Workaround: Run your app in the simulator to test your UI instead of using Previews.
I tried to run my app on my own iPhone, it still didn't work...
Must be something different then. For me both simulator and own device do work.
from reports.
Must be something different then. For me both simulator and own device do work.
Could you show me a quick example, with a simple @model class, with a single view?
from reports.
Simulator and devices all work for me but the #Preview code must be commented out or previews disabled in the editor otherwise I get the error
from reports.
I also commented out the function to generate the preview #Preview, the error disappears. However, it's not very convenient to rebuild the project every time, especially when making small changes in the interface. Hopefully, someone will fix this issue soon.
from reports.
Look's like the problem is solved by installing Xcode 15 beta 5 ✅
from reports.
Related Issues (20)
- FB10837391: Menu bar text is doubled in size after unlocking Mac
- FB10849326: Apple Watch should continue sleep tracking after you wake up to catch you falling back asleep
- FB11519699: Sports news confuses two similarly named universities
- FB11711277: Phone cannot call phone numbers with commas
- FB13457371: Unsending a “Happy birthday” iMessage still sends balloons HOT 1
- FB7657943: Mac Catalyst audio apps should implement a mini player
- FB7582792: Mac Catalyst apps do not hide the cursor when scrolling with arrow keys
- FB12099502: Move cursor by a single pixel on a Retina display
- FB12426370: Sentences ending with a period followed by a number aren’t recognized as separate sentences
- FB12703339: Cannot record screen in Music with 9:41 in titlebar, only blue AirPlay icon
- FB13462772: Messages still makes sounds in-app if notification sounds are turned off
- FB9093710: fn key is ignored when posting a CGEvent HOT 1
- FB13723947: PhotoBooth repeatably creates corrupt videos
- FB13727682: SwiftUI scrollable TextFields not rendering correctly in certain autocomplete cases HOT 1
- FB13800080: Recording/microphone does not work as expected when running automated tests HOT 1
- FB13807432: Add .gradient to ShapeStyle
- FB13807436: Expose the underlying color of a view's tint
- FB13876361: Provide IPSW downloads for older versions of macOS HOT 1
- FB13961574: Xcode 16 beta: Runtime issue, can't find bundle, change to storyboard references and SPM HOT 1
- FB14043201: DVTDeviceManager crash when building with xcodebuild in Xcode 16 (16A5171c)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reports.