title: Can MacOS app to create a new file in Bundle.main?
body: <p>Is there a way for a MacOS app to create a new file in Bundle.main?</p>
  
  <p>It seems like "Bundle.main.url(forResource: "file", withExtension: "json")" is read only. I can find the file in main bundle and read the content. However, when I try to create a file, it says the app doesn't have permission.</p>
  
  <p>However, it tseems like I can create/read/write in "FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last".</p>
  
  <p>Is there a way to make a contained portable app where if you copy the app to another computer, it brings all the modified data with you? If the app could create/read/write a file inside .app package, that would be ideal. I don't think documentDirectory travels if you just copy the .app, right, right?</p>